<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>Go (programming language)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/Go_(programming_language)"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.pygments.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.tmh.player.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Go_programming_language rootpage-Go_programming_language skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">Go (programming language)</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">For the 2003 agent-based programming language, see <a href="Go!_(programming_language)" title="Go! (programming language)">Go! (programming language)</a>.</div>
<p class="mw-empty-elt">
</p>
<style data-mw-deduplicate="TemplateStyles:r1295905060">
/* start https://en.wikipedia.org/ */
.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}
/* end https://en.wikipedia.org/ */
</style><table class="infobox vevent"><tbody><tr><th colspan="2" class="infobox-above" style="background-color:#e0e0e0;">Go</th></tr><tr><td colspan="2" class="infobox-image"><span typeof="mw:File"></span></td></tr><tr><th scope="row" class="infobox-label"><a href="Programming_paradigm" title="Programming paradigm">Paradigm</a></th><td class="infobox-data"><a href="Multi-paradigm_programming_language" class="mw-redirect" title="Multi-paradigm programming language">Multi-paradigm</a>: <a href="Concurrent_programming" class="mw-redirect" title="Concurrent programming">concurrent</a>, <a href="Imperative_programming" title="Imperative programming">imperative</a>, <a href="Functional_programming" title="Functional programming">functional</a>,<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> <a href="Object-oriented_programming" title="Object-oriented programming">object-oriented</a><sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-3" class="reference"><a href="#cite_note-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup></td></tr><tr><th scope="row" class="infobox-label"><a href="Software_design" title="Software design">Designed by</a></th><td class="infobox-data"><a href="Robert_Griesemer" title="Robert Griesemer">Robert Griesemer</a><br><a href="Rob_Pike" title="Rob Pike">Rob Pike</a><br><a href="Ken_Thompson" title="Ken Thompson">Ken Thompson</a><sup id="cite_ref-langfaq_4-0" class="reference"><a href="#cite_note-langfaq-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup></td></tr><tr><th scope="row" class="infobox-label"><a href="Software_developer" class="mw-redirect" title="Software developer">Developer</a></th><td class="infobox-data organiser">The Go Authors<sup id="cite_ref-license_5-0" class="reference"><a href="#cite_note-license-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup></td></tr><tr><th scope="row" class="infobox-label">First appeared</th><td class="infobox-data">November 10, 2009<span style="display:none"> (<span class="bday dtstart published updated">2009-11-10</span>)</span></td></tr><tr><td colspan="2" class="infobox-full-data"></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Software_release_life_cycle" title="Software release life cycle">Stable release</a></th><td class="infobox-data"><div style="margin:0px;"><span><span>1.24.5</span></span>
/ 8 July 2025<span style="display:none"> (<span class="bday dtstart published updated">8 July 2025</span>)</span></div></td></tr><tr style="display:none"><td colspan="2">
</td></tr><tr><th scope="row" class="infobox-label"><a href="Type_system" title="Type system">Typing discipline</a></th><td class="infobox-data"><a href="Type_inference" title="Type inference">Inferred</a>, <a href="Static_typing" class="mw-redirect" title="Static typing">static</a>, <a href="Strong_typing" class="mw-redirect" title="Strong typing">strong</a>,<sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup> <a href="Structural_typing" class="mw-redirect" title="Structural typing">structural</a>,<sup id="cite_ref-structural_typing_7-0" class="reference"><a href="#cite_note-structural_typing-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-8" class="reference"><a href="#cite_note-8"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> <a href="Nominal_typing" class="mw-redirect" title="Nominal typing">nominal</a></td></tr><tr><th scope="row" class="infobox-label"><a href="Memory_management" title="Memory management">Memory management</a></th><td class="infobox-data"><a href="Garbage_collection_(computer_science)" title="Garbage collection (computer science)">Garbage collection</a></td></tr><tr><th scope="row" class="infobox-label">Implementation language</th><td class="infobox-data">Go, <a href="Assembly_language" title="Assembly language">Assembly language</a> (gc); <a href="C%2B%2B" title="C++">C++</a> (gofrontend)</td></tr><tr><th scope="row" class="infobox-label"><a href="Operating_system" title="Operating system">OS</a></th><td class="infobox-data"><a href="DragonFly_BSD" title="DragonFly BSD">DragonFly BSD</a>, <a href="FreeBSD" title="FreeBSD">FreeBSD</a>, <a href="Linux" title="Linux">Linux</a>, <a href="MacOS" title="MacOS">macOS</a>, <a href="NetBSD" title="NetBSD">NetBSD</a>, <a href="OpenBSD" title="OpenBSD">OpenBSD</a>,<sup id="cite_ref-openbsd_9-0" class="reference"><a href="#cite_note-openbsd-9"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup> <a href="Plan_9_from_Bell_Labs" title="Plan 9 from Bell Labs">Plan 9</a>,<sup id="cite_ref-10" class="reference"><a href="#cite_note-10"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup> <a href="Solaris_(operating_system)" class="mw-redirect" title="Solaris (operating system)">Solaris</a>, <a href="Windows" class="mw-redirect" title="Windows">Windows</a></td></tr><tr><th scope="row" class="infobox-label"><a href="Software_license" title="Software license">License</a></th><td class="infobox-data"><a href="3-clause_BSD" class="mw-redirect" title="3-clause BSD">3-clause BSD</a><sup id="cite_ref-license_5-1" class="reference"><a href="#cite_note-license-5"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup> + <a href="Software_patents" class="mw-redirect" title="Software patents">patent</a> grant<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup></td></tr><tr><th scope="row" class="infobox-label"><a href="Filename_extension" title="Filename extension">Filename extensions</a></th><td class="infobox-data">.go</td></tr><tr><th scope="row" class="infobox-label">Website</th><td class="infobox-data"><span class="url"><a rel="nofollow" class="external text" href="https://go.dev/">go<wbr>.dev</a></span></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #EEEEEE;">Major <a href="Programming_language_implementation" title="Programming language implementation">implementations</a></th></tr><tr><td colspan="2" class="infobox-full-data">gc, gofrontend, <a href="Elements_Toolchain" class="mw-redirect" title="Elements Toolchain">gold</a></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #EEEEEE;">Influenced by</th></tr><tr><td colspan="2" class="infobox-full-data"><span><span><a href="C_(programming_language)" title="C (programming language)">C</a></span>, <span><a href="Oberon-2" title="Oberon-2">Oberon-2</a></span>, <span><a href="Limbo_(programming_language)" title="Limbo (programming language)">Limbo</a></span>, <span><a href="Active_Oberon" title="Active Oberon">Active Oberon</a></span>, <span><a href="Communicating_sequential_processes" title="Communicating sequential processes">communicating sequential processes</a></span>, <span><a href="Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a></span>, <span><a href="Oberon_(programming_language)" title="Oberon (programming language)">Oberon</a></span>, <span><a href="Smalltalk" title="Smalltalk">Smalltalk</a></span>, <span><a href="Newsqueak" title="Newsqueak">Newsqueak</a></span>, <span><a href="Modula-2" title="Modula-2">Modula-2</a></span>, <span><a href="Alef_(programming_language)" title="Alef (programming language)">Alef</a></span>, <span><a href="APL_(programming_language)" title="APL (programming language)">APL</a></span>, <span><a href="BCPL" title="BCPL">BCPL</a></span>, <span><a href="Modula" title="Modula">Modula</a></span>, <span><a href="Occam_(programming_language)" title="Occam (programming language)">occam</a></span></span></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #EEEEEE;">Influenced</th></tr><tr><td colspan="2" class="infobox-full-data"><a href="Crystal_(programming_language)" title="Crystal (programming language)">Crystal</a>, <a href="V_(programming_language)" title="V (programming language)">V</a></td></tr></tbody></table>
<p><b>Go</b> is a <a href="High-level_programming_language" title="High-level programming language">high-level</a> <a href="General_purpose_programming_language" class="mw-redirect" title="General purpose programming language">general purpose programming language</a> that is <a href="Static_typing" class="mw-redirect" title="Static typing">statically typed</a> and <a href="Compiled_language" title="Compiled language">compiled</a>. It is known for the simplicity of its syntax and the efficiency of development that it enables by the inclusion of a large standard library supplying many needs for common projects.<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> It was designed at <a href="Google" title="Google">Google</a><sup id="cite_ref-techcrunch_13-0" class="reference"><a href="#cite_note-techcrunch-13"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup> in 2007 by <a href="Robert_Griesemer" title="Robert Griesemer">Robert Griesemer</a>, <a href="Rob_Pike" title="Rob Pike">Rob Pike</a>, and <a href="Ken_Thompson" title="Ken Thompson">Ken Thompson</a>, and publicly announced in November of 2009.<sup id="cite_ref-langfaq_4-1" class="reference"><a href="#cite_note-langfaq-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> It is <a href="Syntax_(programming_languages)" title="Syntax (programming languages)">syntactically</a> similar to <a href="C_(programming_language)" title="C (programming language)">C</a>, but also has <a href="Garbage_collection_(computer_science)" title="Garbage collection (computer science)">garbage collection</a>, <a href="Structural_type_system" title="Structural type system">structural typing</a>,<sup id="cite_ref-structural_typing_7-1" class="reference"><a href="#cite_note-structural_typing-7"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup> and <a href="Communicating_sequential_processes" title="Communicating sequential processes">CSP</a>-style <a href="Concurrency_(computer_science)" title="Concurrency (computer science)">concurrency</a>.<sup id="cite_ref-boldly_14-0" class="reference"><a href="#cite_note-boldly-14"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup> It is often referred to as <b>Golang</b> to avoid ambiguity and because of its former domain name, <code>golang.org</code>, but its proper name is Go.<sup id="cite_ref-15" class="reference"><a href="#cite_note-15"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup>
</p><p>There are two major implementations:
</p>
<ul><li>The original, <a href="Self-hosting_(compilers)" title="Self-hosting (compilers)">self-hosting</a><sup id="cite_ref-16" class="reference"><a href="#cite_note-16"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> <a href="Compiler" title="Compiler">compiler</a> <a href="Toolchain" title="Toolchain">toolchain</a>, initially developed inside Google;<sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup></li>
<li>A frontend written in <a href="C%2B%2B" title="C++">C++</a>, called gofrontend,<sup id="cite_ref-18" class="reference"><a href="#cite_note-18"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup> originally a <a href="GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a> frontend, providing gccgo, a GCC-based Go compiler;<sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup> later extended to also support <a href="LLVM" title="LLVM">LLVM</a>, providing an LLVM-based Go compiler called gollvm.<sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup></li></ul>
<p>A third-party <a href="Source-to-source_compiler" title="Source-to-source compiler">source-to-source compiler</a>, GopherJS,<sup id="cite_ref-21" class="reference"><a href="#cite_note-21"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup> transpiles Go to <a href="JavaScript" title="JavaScript">JavaScript</a> for <a href="Front-end_web_development" title="Front-end web development">front-end web development</a>.
</p>
<style data-mw-deduplicate="TemplateStyles:r886046785">
/* start https://en.wikipedia.org/ */
.mw-parser-output .toclimit-2 .toclevel-1 ul,.mw-parser-output .toclimit-3 .toclevel-2 ul,.mw-parser-output .toclimit-4 .toclevel-3 ul,.mw-parser-output .toclimit-5 .toclevel-4 ul,.mw-parser-output .toclimit-6 .toclevel-5 ul,.mw-parser-output .toclimit-7 .toclevel-6 ul{display:none}
/* end https://en.wikipedia.org/ */
</style><div class="toclimit-3"><meta property="mw:PageProp/toc"></div>
<div class="mw-heading mw-heading2"><h2 id="History">History</h2></div>
<p>Go was designed at <a href="Google" title="Google">Google</a> in 2007 to improve <a href="Programming_productivity" title="Programming productivity">programming productivity</a> in an era of <a href="Multi-core_processor" title="Multi-core processor">multicore</a>, <a href="Computer_network" title="Computer network">networked</a> <a href="Computer" title="Computer">machines</a> and large <a href="Codebase" title="Codebase">codebases</a>.<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup> The designers wanted to address criticisms of other languages in use at Google, but keep their useful characteristics:<sup id="cite_ref-23" class="reference"><a href="#cite_note-23"><span class="cite-bracket">[</span>23<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li><a href="Static_typing" class="mw-redirect" title="Static typing">Static typing</a> and <a href="Run_time_(program_lifecycle_phase)" class="mw-redirect" title="Run time (program lifecycle phase)">run-time</a> efficiency (like <a href="C_(programming_language)" title="C (programming language)">C</a>)</li>
<li><a href="Readability" title="Readability">Readability</a> and <a href="Usability" title="Usability">usability</a> (like <a href="Python_(programming_language)" title="Python (programming language)">Python</a>)<sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">[</span>24<span class="cite-bracket">]</span></a></sup></li>
<li>High-performance <a href="Computer_network" title="Computer network">networking</a> and <a href="Multiprocessing" title="Multiprocessing">multiprocessing</a></li></ul>
<p>Its designers were primarily motivated by their shared <a href="Criticism_of_C%2B%2B" title="Criticism of C++">dislike of C++</a>.<sup id="cite_ref-25" class="reference"><a href="#cite_note-25"><span class="cite-bracket">[</span>25<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-26" class="reference"><a href="#cite_note-26"><span class="cite-bracket">[</span>26<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-27" class="reference"><a href="#cite_note-27"><span class="cite-bracket">[</span>27<span class="cite-bracket">]</span></a></sup>
</p><p>Go was publicly announced in November 2009,<sup id="cite_ref-28" class="reference"><a href="#cite_note-28"><span class="cite-bracket">[</span>28<span class="cite-bracket">]</span></a></sup> and version 1.0 was released in March 2012.<sup id="cite_ref-29" class="reference"><a href="#cite_note-29"><span class="cite-bracket">[</span>29<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-30" class="reference"><a href="#cite_note-30"><span class="cite-bracket">[</span>30<span class="cite-bracket">]</span></a></sup> Go is widely used in production at Google<sup id="cite_ref-faq_31-0" class="reference"><a href="#cite_note-faq-31"><span class="cite-bracket">[</span>31<span class="cite-bracket">]</span></a></sup> and in many other organizations and open-source projects.
</p><p>In retrospect the Go authors judged Go to be successful due to the overall engineering work around the language, including the runtime support for the language's concurrency feature.
</p>
<style data-mw-deduplicate="TemplateStyles:r1244412712">
/* start https://en.wikipedia.org/ */
.mw-parser-output .templatequote{overflow:hidden;margin:1em 0;padding:0 32px}.mw-parser-output .templatequotecite{line-height:1.5em;text-align:left;margin-top:0}@media(min-width:500px){.mw-parser-output .templatequotecite{padding-left:1.6em}}
/* end https://en.wikipedia.org/ */
</style><blockquote class="templatequote"><p>Although the design of most languages concentrates on innovations in syntax, semantics, or typing, Go is focused on the software development process itself. ... The principal unusual property of the language itself—concurrency—addressed problems that arose with the proliferation of multicore CPUs in the 2010s. But more significant was the early work that established fundamentals for packaging, dependencies, build, test, deployment, and other workaday tasks of the software development world, aspects
that are not usually foremost in language design.<sup id="cite_ref-32" class="reference"><a href="#cite_note-32"><span class="cite-bracket">[</span>32<span class="cite-bracket">]</span></a></sup></p></blockquote>
<div class="mw-heading mw-heading3"><h3 id="Branding_and_styling">Branding and styling</h3></div>
<p>The <a href="Gopher" title="Gopher">Gopher</a> <a href="Mascot" title="Mascot">mascot</a> was introduced in 2009 for the <a href="Open_source" title="Open source">open source</a> launch of the language. The design, by <a href="Ren%C3%A9e_French" title="Renée French">Renée French</a>, borrowed from a c. 2000 <a href="WFMU" title="WFMU">WFMU</a> promotion.<sup id="cite_ref-33" class="reference"><a href="#cite_note-33"><span class="cite-bracket">[</span>33<span class="cite-bracket">]</span></a></sup>
</p><p>In November 2016, the Go and Go Mono fonts were released by type designers <a href="Charles_Bigelow_(type_designer)" title="Charles Bigelow (type designer)">Charles Bigelow</a> and <a href="Kris_Holmes" title="Kris Holmes">Kris Holmes</a> specifically for use by the Go project. Go is a <a href="Humanist_sans-serif" class="mw-redirect" title="Humanist sans-serif">humanist sans-serif</a> resembling <a href="Lucida_Grande" title="Lucida Grande">Lucida Grande</a>, and Go Mono is <a href="Monospaced" class="mw-redirect" title="Monospaced">monospaced</a>. Both fonts adhere to the <a href="WGL4" class="mw-redirect" title="WGL4">WGL4</a> character set and were designed to be legible with a large <a href="X-height" title="X-height">x-height</a> and distinct <a href="Letterform" title="Letterform">letterforms</a>. Both Go and Go Mono adhere to the <a href="DIN" class="mw-redirect" title="DIN">DIN</a> 1450 standard by having a slashed zero, lowercase <code>l</code> with a tail, and an uppercase <code>I</code> with serifs.<sup id="cite_ref-34" class="reference"><a href="#cite_note-34"><span class="cite-bracket">[</span>34<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-35" class="reference"><a href="#cite_note-35"><span class="cite-bracket">[</span>35<span class="cite-bracket">]</span></a></sup>
</p><p>In April 2018, the original logo was redesigned by brand designer Adam Smith. The new logo is a modern, stylized GO slanting right with trailing streamlines. (The Gopher mascot remained the same.<sup id="cite_ref-36" class="reference"><a href="#cite_note-36"><span class="cite-bracket">[</span>36<span class="cite-bracket">]</span></a></sup>)
</p>
<div class="mw-heading mw-heading3"><h3 id="Generics">Generics</h3></div>
<p>The lack of support for <a href="Generic_programming" title="Generic programming">generic programming</a> in initial versions of Go drew considerable criticism.<sup id="cite_ref-37" class="reference"><a href="#cite_note-37"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup> The designers expressed an openness to generic programming and noted that built-in functions <i>were</i> in fact type-generic, but are treated as special cases; Pike called this a weakness that might be changed at some point.<sup id="cite_ref-append_38-0" class="reference"><a href="#cite_note-append-38"><span class="cite-bracket">[</span>38<span class="cite-bracket">]</span></a></sup> The Google team built at least one compiler for an experimental Go dialect with generics, but did not release it.<sup id="cite_ref-39" class="reference"><a href="#cite_note-39"><span class="cite-bracket">[</span>39<span class="cite-bracket">]</span></a></sup>
</p><p>In August 2018, the Go principal contributors published draft designs for generic programming and <a href="Exception_handling" title="Exception handling">error handling</a> and asked users to submit feedback.<sup id="cite_ref-40" class="reference"><a href="#cite_note-40"><span class="cite-bracket">[</span>40<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-41" class="reference"><a href="#cite_note-41"><span class="cite-bracket">[</span>41<span class="cite-bracket">]</span></a></sup> However, the error handling proposal was eventually abandoned.<sup id="cite_ref-42" class="reference"><a href="#cite_note-42"><span class="cite-bracket">[</span>42<span class="cite-bracket">]</span></a></sup>
</p><p>In June 2020, a new draft design document<sup id="cite_ref-43" class="reference"><a href="#cite_note-43"><span class="cite-bracket">[</span>43<span class="cite-bracket">]</span></a></sup> was published that would add the necessary syntax to Go for declaring generic functions and types. A code translation tool, <i><style data-mw-deduplicate="TemplateStyles:r886049734">
/* start https://en.wikipedia.org/ */
.mw-parser-output .monospaced{font-family:monospace,monospace}
/* end https://en.wikipedia.org/ */
</style><span class="monospaced">go2go</span></i>, was provided to allow users to try the new syntax, along with a generics-enabled version of the online Go Playground.<sup id="cite_ref-44" class="reference"><a href="#cite_note-44"><span class="cite-bracket">[</span>44<span class="cite-bracket">]</span></a></sup>
</p><p>Generics were finally added to Go in version 1.18 on March 15, 2022.<sup id="cite_ref-45" class="reference"><a href="#cite_note-45"><span class="cite-bracket">[</span>45<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Versioning">Versioning</h3></div>
<p>Go 1 guarantees compatibility<sup id="cite_ref-46" class="reference"><a href="#cite_note-46"><span class="cite-bracket">[</span>46<span class="cite-bracket">]</span></a></sup> for the language specification and major parts of the standard library. All versions up through the current Go 1.24 release<sup id="cite_ref-47" class="reference"><a href="#cite_note-47"><span class="cite-bracket">[</span>47<span class="cite-bracket">]</span></a></sup> have maintained this promise.
</p><p>Go uses a <code>go1.[major].[patch]</code> versioning format, such as <code>go1.24.0</code> and each major Go release is supported until there are two newer major releases. Unlike most software, Go calls the second number in a version the major, i.e., in <code>go1.24.0</code> the <code>24</code> is the major version.<sup id="cite_ref-48" class="reference"><a href="#cite_note-48"><span class="cite-bracket">[</span>48<span class="cite-bracket">]</span></a></sup> This is because Go plans to never reach 2.0, prioritizing backwards compatibility over potential breaking changes.<sup id="cite_ref-49" class="reference"><a href="#cite_note-49"><span class="cite-bracket">[</span>49<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Design">Design</h2></div>
<p>Go is influenced by <a href="C_(programming_language)" title="C (programming language)">C</a> (especially the <a href="Plan_9_from_Bell_Labs" title="Plan 9 from Bell Labs">Plan 9</a> <a href="Dialect_(computing)" class="mw-redirect" title="Dialect (computing)">dialect</a><sup id="cite_ref-50" class="reference"><a href="#cite_note-50"><span class="cite-bracket">[</span>50<span class="cite-bracket">]</span></a></sup>), but with an emphasis on greater simplicity and safety. It consists of:
</p>
<ul><li>A syntax and environment adopting patterns more common in <a href="Dynamic_programming_language" title="Dynamic programming language">dynamic languages</a>:<sup id="cite_ref-go_lang_video_2009_51-0" class="reference"><a href="#cite_note-go_lang_video_2009-51"><span class="cite-bracket">[</span>51<span class="cite-bracket">]</span></a></sup>
<ul><li>Optional concise variable declaration and initialization through <a href="Type_inference" title="Type inference">type inference</a> (<code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="nx">x</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="mi">0</span></code> instead of <code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="kd">var</span><span class="w"> </span><span class="nx">x</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span></code> or <code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="kd">var</span><span class="w"> </span><span class="nx">x</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span></code>)</li>
<li>Fast compilation<sup id="cite_ref-techtalk-compiling_52-0" class="reference"><a href="#cite_note-techtalk-compiling-52"><span class="cite-bracket">[</span>52<span class="cite-bracket">]</span></a></sup></li>
<li>Remote package management (<code>go get</code>)<sup id="cite_ref-53" class="reference"><a href="#cite_note-53"><span class="cite-bracket">[</span>53<span class="cite-bracket">]</span></a></sup> and online package documentation<sup id="cite_ref-54" class="reference"><a href="#cite_note-54"><span class="cite-bracket">[</span>54<span class="cite-bracket">]</span></a></sup></li></ul></li>
<li>Distinctive approaches to particular problems:
<ul><li>Built-in concurrency primitives: <a href="Light-weight_process" title="Light-weight process">light-weight processes</a> (goroutines), <a href="Channel_(programming)" title="Channel (programming)">channels</a>, and the <code>select</code> statement</li>
<li>An <a href="Protocol_(object-oriented_programming)" class="mw-redirect" title="Protocol (object-oriented programming)">interface</a> system in place of <a href="Virtual_inheritance" title="Virtual inheritance">virtual inheritance</a>, and type embedding instead of non-virtual inheritance</li>
<li>A toolchain that, by default, produces <a href="Static_library" title="Static library">statically linked</a> native binaries without external Go dependencies</li></ul></li>
<li>A desire to keep the language specification simple enough to hold in a programmer's head,<sup id="cite_ref-55" class="reference"><a href="#cite_note-55"><span class="cite-bracket">[</span>55<span class="cite-bracket">]</span></a></sup> in part by <a href="#Omissions">omitting features that are common in similar languages</a>.</li>
<li>25 reserved words</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Syntax">Syntax</h3></div>
<p>Go's syntax includes changes from <a href="C_(programming_language)" title="C (programming language)">C</a> aimed at keeping code concise and readable. A combined declaration/initialization operator was introduced that allows the programmer to write <code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="nx">i</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="mi">3</span></code> or <code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="nx">s</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="s">"Hello, world!"</span></code>, <a href="Type_inference" title="Type inference">without specifying the types</a> of variables used. This contrasts with C's <code class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">3</span><span class="p">;</span></code> and <code class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><span class="k">const</span><span class="w"> </span><span class="kt">char</span><span class="w"> </span><span class="o">*</span><span class="n">s</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">"Hello, world!"</span><span class="p">;</span></code>. Go also removes the requirement to use parentheses in if statement conditions.
</p><p>Semicolons still terminate statements;<sup id="cite_ref-57" class="reference"><a href="#cite_note-57"><span class="cite-bracket">[</span>a<span class="cite-bracket">]</span></a></sup> but are implicit when the end of a line occurs.<sup id="cite_ref-59" class="reference"><a href="#cite_note-59"><span class="cite-bracket">[</span>b<span class="cite-bracket">]</span></a></sup>
</p><p>Methods may return multiple values, and returning a <code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="nx">result</span><span class="p">,</span><span class="w"> </span><span class="nx">err</span></code> pair is the conventional way a method indicates an error to its caller in Go.<sup id="cite_ref-60" class="reference"><a href="#cite_note-60"><span class="cite-bracket">[</span>c<span class="cite-bracket">]</span></a></sup> Go adds literal syntaxes for initializing struct parameters by name and for initializing <a href="Associative_array" title="Associative array">maps</a> and <a href="Array_slicing" title="Array slicing">slices</a>. As an alternative to C's three-statement <code>for</code> loop, Go's <code>range</code> expressions allow concise iteration over arrays, slices, strings, maps, and channels.<sup id="cite_ref-61" class="reference"><a href="#cite_note-61"><span class="cite-bracket">[</span>58<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Types">Types</h3></div>
<p>Go has a number of built-in types, including numeric ones (<span class="monospaced">byte</span>, <span class="monospaced">int64</span>, <span class="monospaced">float32</span>, etc.), <a href="Boolean_data_type" title="Boolean data type">Booleans</a>, and byte strings (<span class="monospaced">string</span>). Strings are immutable; built-in operators and keywords (rather than functions) provide concatenation, comparison, and <a href="UTF-8" title="UTF-8">UTF-8</a> encoding/decoding.<sup id="cite_ref-62" class="reference"><a href="#cite_note-62"><span class="cite-bracket">[</span>59<span class="cite-bracket">]</span></a></sup> <a href="Record_(computer_science)" title="Record (computer science)">Record types</a> can be defined with the <span class="monospaced">struct</span> keyword.<sup id="cite_ref-63" class="reference"><a href="#cite_note-63"><span class="cite-bracket">[</span>60<span class="cite-bracket">]</span></a></sup>
</p><p>For each type <span class="monospaced"><i>T</i></span> and each non-negative integer constant <span class="monospaced"><i>n</i></span>, there is an <a href="Array_data_type" class="mw-redirect" title="Array data type">array type</a> denoted <span class="monospaced">[<i>n</i>]<i>T</i></span>; arrays of differing lengths are thus of different types. <a href="Dynamic_array" title="Dynamic array">Dynamic arrays</a> are available as "slices", denoted <span class="monospaced">[]<i>T</i></span> for some type <span class="monospaced"><i>T</i></span>. These have a length and a <i>capacity</i> specifying when new memory needs to be allocated to expand the array. Several slices may share their underlying memory.<sup id="cite_ref-append_38-1" class="reference"><a href="#cite_note-append-38"><span class="cite-bracket">[</span>38<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-64" class="reference"><a href="#cite_note-64"><span class="cite-bracket">[</span>61<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-65" class="reference"><a href="#cite_note-65"><span class="cite-bracket">[</span>62<span class="cite-bracket">]</span></a></sup>
</p><p><a href="Pointer_(computer_programming)" title="Pointer (computer programming)"><i>Pointers</i></a> are available for all types, and the pointer-to-<span class="monospaced"><i>T</i></span> type is denoted <span class="monospaced">*<i>T</i></span>. Address-taking and indirection use the <span class="monospaced">&</span> and <span class="monospaced">*</span> operators, as in C, or happen implicitly through the method call or attribute access syntax.<sup id="cite_ref-66" class="reference"><a href="#cite_note-66"><span class="cite-bracket">[</span>63<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-67" class="reference"><a href="#cite_note-67"><span class="cite-bracket">[</span>64<span class="cite-bracket">]</span></a></sup> There is no pointer arithmetic,<sup id="cite_ref-noPointerArith_68-0" class="reference"><a href="#cite_note-noPointerArith-68"><span class="cite-bracket">[</span>d<span class="cite-bracket">]</span></a></sup> except via the special <span class="monospaced">unsafe.Pointer</span> type in the standard library.<sup id="cite_ref-69" class="reference"><a href="#cite_note-69"><span class="cite-bracket">[</span>65<span class="cite-bracket">]</span></a></sup>
</p><p>For a pair of types <span class="monospaced"><i>K</i></span>, <span class="monospaced"><i>V</i></span>, the type <span class="monospaced">map[<i>K</i>]<i>V</i></span> is the type mapping type-<span class="monospaced"><i>K</i></span> keys to type-<span class="monospaced"><i>V</i></span> values, though Go Programming Language specification does not give any performance guarantees or implementation requirements for map types. Hash tables are built into the language, with special syntax and built-in functions. <span class="monospaced">chan <i> T</i></span> is a <i>channel</i> that allows sending values of type <i>T</i> between <a href="#Concurrency">concurrent Go processes</a>.<sup id="cite_ref-70" class="reference"><a href="#cite_note-70"><span class="cite-bracket">[</span>66<span class="cite-bracket">]</span></a></sup>
</p><p>Aside from its support for <a href="#Interfaces">interfaces</a>, Go's type system is <a href="Nominal_type_system" title="Nominal type system">nominal</a>: the <span class="monospaced">type</span> keyword can be used to define a new <i>named type</i>, which is distinct from other named types that have the same layout (in the case of a <span class="monospaced">struct</span>, the same members in the same order). Some conversions between types (e.g., between the various integer types) are pre-defined and adding a new type may define additional conversions, but conversions between named types must always be invoked explicitly.<sup id="cite_ref-71" class="reference"><a href="#cite_note-71"><span class="cite-bracket">[</span>67<span class="cite-bracket">]</span></a></sup> For example, the <span class="monospaced">type</span> keyword can be used to define a type for <a href="IPv4" title="IPv4">IPv4</a> addresses, based on 32-bit unsigned integers as follows:
</p>
<div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kd">type</span><span class="w"> </span><span class="nx">ipv4addr</span><span class="w"> </span><span class="kt">uint32</span>
</pre></div>
<p>With this type definition, <span class="monospaced">ipv4addr(x)</span> interprets the <span class="monospaced">uint32</span> value <span class="monospaced">x</span> as an IP address. Simply assigning <span class="monospaced">x</span> to a variable of type <span class="monospaced">ipv4addr</span> is a type error.<sup id="cite_ref-72" class="reference"><a href="#cite_note-72"><span class="cite-bracket">[</span>68<span class="cite-bracket">]</span></a></sup>
</p><p><i>Constant expressions</i> may be either typed or "untyped"; they are given a type when assigned to a typed variable if the value they represent passes a compile-time check.<sup id="cite_ref-73" class="reference"><a href="#cite_note-73"><span class="cite-bracket">[</span>69<span class="cite-bracket">]</span></a></sup>
</p><p><i><a href="Subroutine" class="mw-redirect" title="Subroutine">Function</a> types</i> are indicated by the <span class="monospaced">func</span> keyword; they take zero or more <a href="Parameter_(computer_programming)" title="Parameter (computer programming)">parameters</a> and <a href="Return_statement" title="Return statement">return</a> zero or more values, all of which are typed. The parameter and return values determine a function type; thus, <span class="monospaced">func(string, int32) (int, error)</span> is the type of functions that take a <span class="monospaced">string</span> and a 32-bit signed integer, and return a signed integer (of default width) and a value of the built-in interface type <span class="monospaced">error</span>.<sup id="cite_ref-74" class="reference"><a href="#cite_note-74"><span class="cite-bracket">[</span>70<span class="cite-bracket">]</span></a></sup>
</p><p>Any named type has a <a href="Method_(computer_programming)" title="Method (computer programming)">method</a> set associated with it. The IP address example above can be extended with a method for checking whether its value is a known standard:
</p>
<div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="c1">// ZeroBroadcast reports whether addr is 255.255.255.255.</span>
<span class="kd">func</span><span class="w"> </span><span class="p">(</span><span class="nx">addr</span><span class="w"> </span><span class="nx">ipv4addr</span><span class="p">)</span><span class="w"> </span><span class="nx">ZeroBroadcast</span><span class="p">()</span><span class="w"> </span><span class="kt">bool</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">addr</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xFFFFFFFF</span>
<span class="p">}</span>
</pre></div>
<p>Due to nominal typing, this method definition adds a method to <span class="monospaced">ipv4addr</span>, but not on <span class="monospaced">uint32</span>. While methods have special definition and call syntax, there is no distinct method type.<sup id="cite_ref-75" class="reference"><a href="#cite_note-75"><span class="cite-bracket">[</span>71<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="Interface_system"> Interface system</h4></div>
<p>Go provides two features that replace <a href="Inheritance_(object-oriented_programming)" title="Inheritance (object-oriented programming)">class inheritance</a>.
</p><p>The first is <i>embedding</i>, which can be viewed as an automated form of <a href="Object_composition" title="Object composition">composition</a>.<sup id="cite_ref-gohotdraw_76-0" class="reference"><a href="#cite_note-gohotdraw-76"><span class="cite-bracket">[</span>72<span class="cite-bracket">]</span></a></sup>
</p><p>The second are its <i><a href="Protocol_(object-oriented_programming)" class="mw-redirect" title="Protocol (object-oriented programming)">interfaces</a></i>, which provides <a href="Runtime_polymorphism" class="mw-redirect" title="Runtime polymorphism">runtime polymorphism</a>.<sup id="cite_ref-balbaert_77-0" class="reference"><a href="#cite_note-balbaert-77"><span class="cite-bracket">[</span>73<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 266">: 266 </span></sup> Interfaces are a class of types and provide a limited form of <a href="Structural_type_system" title="Structural type system">structural typing</a> in the otherwise nominal type system of Go. An object which is of an interface type is also of another type, much like <a href="C%2B%2B" title="C++">C++</a> objects being simultaneously of a base and derived class. The design of Go interfaces was inspired by <a href="Protocol_(object-oriented_programming)" class="mw-redirect" title="Protocol (object-oriented programming)">protocols</a> from the Smalltalk programming language.<sup id="cite_ref-78" class="reference"><a href="#cite_note-78"><span class="cite-bracket">[</span>74<span class="cite-bracket">]</span></a></sup> Multiple sources use the term <a href="Duck_typing" title="Duck typing">duck typing</a> when describing Go interfaces.<sup id="cite_ref-79" class="reference"><a href="#cite_note-79"><span class="cite-bracket">[</span>75<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-80" class="reference"><a href="#cite_note-80"><span class="cite-bracket">[</span>76<span class="cite-bracket">]</span></a></sup> Although the term duck typing is not precisely defined and therefore not wrong, it usually implies that type conformance is not statically checked. Because conformance to a Go interface is checked statically by the Go compiler (except when performing a type assertion), the Go authors prefer the term <i>structural typing</i>.<sup id="cite_ref-81" class="reference"><a href="#cite_note-81"><span class="cite-bracket">[</span>77<span class="cite-bracket">]</span></a></sup>
</p><p>The definition of an interface type lists required methods by name and type. Any object of type T for which functions exist matching all the required methods of interface type I is an object of type I as well. The definition of type T need not (and cannot) identify type I. For example, if <span class="monospaced">Shape</span>, <span class="monospaced">Square</span> <span class="monospaced">and Circle</span> are defined as
</p>
<div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kn">import</span><span class="w"> </span><span class="s">"math"</span>
<span class="kd">type</span><span class="w"> </span><span class="nx">Shape</span><span class="w"> </span><span class="kd">interface</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">Area</span><span class="p">()</span><span class="w"> </span><span class="kt">float64</span>
<span class="p">}</span>
<span class="kd">type</span><span class="w"> </span><span class="nx">Square</span><span class="w"> </span><span class="kd">struct</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// Note: no "implements" declaration</span>
<span class="w"> </span><span class="nx">side</span><span class="w"> </span><span class="kt">float64</span>
<span class="p">}</span>
<span class="kd">func</span><span class="w"> </span><span class="p">(</span><span class="nx">sq</span><span class="w"> </span><span class="nx">Square</span><span class="p">)</span><span class="w"> </span><span class="nx">Area</span><span class="p">()</span><span class="w"> </span><span class="kt">float64</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">sq</span><span class="p">.</span><span class="nx">side</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nx">sq</span><span class="p">.</span><span class="nx">side</span><span class="w"> </span><span class="p">}</span>
<span class="kd">type</span><span class="w"> </span><span class="nx">Circle</span><span class="w"> </span><span class="kd">struct</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// No "implements" declaration here either</span>
<span class="w"> </span><span class="nx">radius</span><span class="w"> </span><span class="kt">float64</span>
<span class="p">}</span>
<span class="kd">func</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="w"> </span><span class="nx">Circle</span><span class="p">)</span><span class="w"> </span><span class="nx">Area</span><span class="p">()</span><span class="w"> </span><span class="kt">float64</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">math</span><span class="p">.</span><span class="nx">Pi</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nx">math</span><span class="p">.</span><span class="nx">Pow</span><span class="p">(</span><span class="nx">c</span><span class="p">.</span><span class="nx">radius</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">)</span><span class="w"> </span><span class="p">}</span>
</pre></div>
<p>then both a <span class="monospaced">Square</span> and a <span class="monospaced">Circle</span> are implicitly a <span class="monospaced">Shape</span> and can be assigned to a <span class="monospaced">Shape</span>-typed variable.<sup id="cite_ref-balbaert_77-1" class="reference"><a href="#cite_note-balbaert-77"><span class="cite-bracket">[</span>73<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 263–268">: 263–268 </span></sup> In formal language, Go's interface system provides <a href="Structural_type_system" title="Structural type system">structural</a> rather than <a href="Nominal_type_system" title="Nominal type system">nominal</a> typing. Interfaces can embed other interfaces with the effect of creating a combined interface that is satisfied by exactly the types that implement the embedded interface and any methods that the newly defined interface adds.<sup id="cite_ref-balbaert_77-2" class="reference"><a href="#cite_note-balbaert-77"><span class="cite-bracket">[</span>73<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 270">: 270 </span></sup>
</p><p>The Go standard library uses interfaces to provide genericity in several places, including the input/output system that is based on the concepts of <span class="monospaced">Reader</span> and <span class="monospaced">Writer</span>.<sup id="cite_ref-balbaert_77-3" class="reference"><a href="#cite_note-balbaert-77"><span class="cite-bracket">[</span>73<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 282–283">: 282–283 </span></sup>
</p><p>
Besides calling methods via interfaces, Go allows converting interface values to other types with a run-time type check. The language constructs to do so are the <i>type assertion</i>,<sup id="cite_ref-82" class="reference"><a href="#cite_note-82"><span class="cite-bracket">[</span>78<span class="cite-bracket">]</span></a></sup> which checks against a single potential type:</p><div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kd">var</span><span class="w"> </span><span class="nx">shp</span><span class="w"> </span><span class="nx">Shape</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><span class="nx">Square</span><span class="p">{</span><span class="mi">5</span><span class="p">}</span>
<span class="nx">square</span><span class="p">,</span><span class="w"> </span><span class="nx">ok</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">shp</span><span class="p">.(</span><span class="nx">Square</span><span class="p">)</span><span class="w"> </span><span class="c1">// Asserts Square type on shp, should work</span>
<span class="k">if</span><span class="w"> </span><span class="nx">ok</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">fmt</span><span class="p">.</span><span class="nx">Printf</span><span class="p">(</span><span class="s">"%#v\n"</span><span class="p">,</span><span class="w"> </span><span class="nx">square</span><span class="p">)</span>
<span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">fmt</span><span class="p">.</span><span class="nx">Println</span><span class="p">(</span><span class="s">"Can't print shape as Square"</span><span class="p">)</span>
<span class="p">}</span>
</pre></div><p>and the <i>type switch</i>,<sup id="cite_ref-83" class="reference"><a href="#cite_note-83"><span class="cite-bracket">[</span>79<span class="cite-bracket">]</span></a></sup> which checks against multiple types:</p><div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kd">func</span><span class="w"> </span><span class="p">(</span><span class="nx">sq</span><span class="w"> </span><span class="nx">Square</span><span class="p">)</span><span class="w"> </span><span class="nx">Diagonal</span><span class="p">()</span><span class="w"> </span><span class="kt">float64</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">sq</span><span class="p">.</span><span class="nx">side</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nx">math</span><span class="p">.</span><span class="nx">Sqrt2</span><span class="w"> </span><span class="p">}</span>
<span class="kd">func</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="w"> </span><span class="nx">Circle</span><span class="p">)</span><span class="w"> </span><span class="nx">Diameter</span><span class="p">()</span><span class="w"> </span><span class="kt">float64</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nx">c</span><span class="p">.</span><span class="nx">radius</span><span class="w"> </span><span class="p">}</span>
<span class="kd">func</span><span class="w"> </span><span class="nx">LongestContainedLine</span><span class="p">(</span><span class="nx">shp</span><span class="w"> </span><span class="nx">Shape</span><span class="p">)</span><span class="w"> </span><span class="kt">float64</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="k">switch</span><span class="w"> </span><span class="nx">v</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">shp</span><span class="p">.(</span><span class="kd">type</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="nx">Square</span><span class="p">:</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">v</span><span class="p">.</span><span class="nx">Diagonal</span><span class="p">()</span><span class="w"> </span><span class="c1">// Or, with type assertion, shp.(Square).Diagonal()</span>
<span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="nx">Circle</span><span class="p">:</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">v</span><span class="p">.</span><span class="nx">Diameter</span><span class="p">()</span><span class="w"> </span><span class="c1">// Or, with type assertion, shp.(Circle).Diameter()</span>
<span class="w"> </span><span class="k">default</span><span class="p">:</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="c1">// In practice, this should be handled with errors</span>
<span class="w"> </span><span class="p">}</span>
<span class="p">}</span>
</pre></div><p>The <i>empty interface</i> <code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="kd">interface</span><span class="p">{}</span></code> is an important base case because it can refer to an item of <i>any</i> concrete type. It is similar to the <span class="monospaced">Object</span> class in <a href="Java_(programming_language)" title="Java (programming language)">Java</a> or <a href="C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a> and is satisfied by any type, including built-in types like <span class="monospaced">int</span>.<sup id="cite_ref-balbaert_77-4" class="reference"><a href="#cite_note-balbaert-77"><span class="cite-bracket">[</span>73<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 284">: 284 </span></sup> Code using the empty interface cannot simply call methods (or built-in operators) on the referred-to object, but it can store the <code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="kd">interface</span><span class="p">{}</span></code> value, try to convert it to a more useful type via a type assertion or type switch, or inspect it with Go's <code>reflect</code> package.<sup id="cite_ref-84" class="reference"><a href="#cite_note-84"><span class="cite-bracket">[</span>80<span class="cite-bracket">]</span></a></sup> Because <code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="kd">interface</span><span class="p">{}</span></code> can refer to any value, it is a limited way to escape the restrictions of static typing, like <code class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><span class="kt">void</span><span class="o">*</span></code> in C but with additional run-time type checks.
</p><p>The <code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="kd">interface</span><span class="p">{}</span></code> type can be used to model structured data of any arbitrary schema in Go, such as <a href="JSON" title="JSON">JSON</a> or <a href="YAML" title="YAML">YAML</a> data, by representing it as a <code class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><span class="kd">map</span><span class="p">[</span><span class="kt">string</span><span class="p">]</span><span class="kd">interface</span><span class="p">{}</span></code> (map of string to empty interface). This recursively describes data in the form of a dictionary with string keys and values of any type.<sup id="cite_ref-85" class="reference"><a href="#cite_note-85"><span class="cite-bracket">[</span>81<span class="cite-bracket">]</span></a></sup>
</p><p>Interface values are implemented using pointer to data and a second pointer to run-time type information.<sup id="cite_ref-86" class="reference"><a href="#cite_note-86"><span class="cite-bracket">[</span>82<span class="cite-bracket">]</span></a></sup> Like some other types implemented using pointers in Go, interface values are <code>nil</code> if uninitialized.<sup id="cite_ref-87" class="reference"><a href="#cite_note-87"><span class="cite-bracket">[</span>83<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="Generic_code_using_parameterized_types">Generic code using parameterized types</h4></div>
<p>Since version 1.18, Go supports generic code using parameterized types.<sup id="cite_ref-88" class="reference"><a href="#cite_note-88"><span class="cite-bracket">[</span>84<span class="cite-bracket">]</span></a></sup>
</p><p>Functions and types now have the ability to be generic using type parameters. These type parameters are specified within square brackets, right after the function or type name.<sup id="cite_ref-89" class="reference"><a href="#cite_note-89"><span class="cite-bracket">[</span>85<span class="cite-bracket">]</span></a></sup> The compiler transforms the generic function or type into non-generic by substituting <i>type arguments</i> for the type parameters provided, either explicitly by the user or type inference by the compiler.<sup id="cite_ref-90" class="reference"><a href="#cite_note-90"><span class="cite-bracket">[</span>86<span class="cite-bracket">]</span></a></sup> This transformation process is referred to as type instantiation.<sup id="cite_ref-91" class="reference"><a href="#cite_note-91"><span class="cite-bracket">[</span>87<span class="cite-bracket">]</span></a></sup>
</p><p>
Interfaces now can define a set of types (known as type set) using <code>|</code> (Union) operator, as well as a set of methods. These changes were made to support type constraints in generics code. For a generic function or type, a constraint can be thought of as the type of the type argument: a meta-type. This new <code>~T</code> syntax will be the first use of <code>~</code> as a token in Go. <code>~T</code> means the set of all types whose underlying type is <code>T</code>.<sup id="cite_ref-92" class="reference"><a href="#cite_note-92"><span class="cite-bracket">[</span>88<span class="cite-bracket">]</span></a></sup></p><div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kd">type</span><span class="w"> </span><span class="nx">Number</span><span class="w"> </span><span class="kd">interface</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="o">~</span><span class="kt">int</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="o">~</span><span class="kt">float64</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="o">~</span><span class="kt">float32</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="o">~</span><span class="kt">int32</span><span class="w"> </span><span class="o">|</span><span class="w"> </span><span class="o">~</span><span class="kt">int64</span>
<span class="p">}</span>
<span class="kd">func</span><span class="w"> </span><span class="nx">Add</span><span class="p">[</span><span class="nx">T</span><span class="w"> </span><span class="nx">Number</span><span class="p">](</span><span class="nx">nums</span><span class="w"> </span><span class="o">...</span><span class="nx">T</span><span class="p">)</span><span class="w"> </span><span class="nx">T</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">sum</span><span class="w"> </span><span class="nx">T</span>
<span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="nx">_</span><span class="p">,</span><span class="w"> </span><span class="nx">v</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="k">range</span><span class="w"> </span><span class="nx">nums</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">sum</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="nx">v</span>
<span class="w"> </span><span class="p">}</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">sum</span>
<span class="p">}</span>
<span class="kd">func</span><span class="w"> </span><span class="nx">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">add</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">Add</span><span class="p">[</span><span class="kt">int</span><span class="p">]</span><span class="w"> </span><span class="c1">// Type instantiation</span>
<span class="w"> </span><span class="nb">println</span><span class="p">(</span><span class="nx">add</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">))</span><span class="w"> </span><span class="c1">// 15</span>
<span class="w"> </span><span class="nx">res</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">Add</span><span class="p">(</span><span class="mf">1.1</span><span class="p">,</span><span class="w"> </span><span class="mf">2.2</span><span class="p">,</span><span class="w"> </span><span class="mf">3.3</span><span class="p">,</span><span class="w"> </span><span class="mf">4.4</span><span class="p">,</span><span class="w"> </span><span class="mf">5.5</span><span class="p">)</span><span class="w"> </span><span class="c1">// Type Inference</span>
<span class="w"> </span><span class="nb">println</span><span class="p">(</span><span class="nx">res</span><span class="p">)</span><span class="w"> </span><span class="c1">// +1.650000e+001</span>
<span class="p">}</span>
</pre></div>
<div class="mw-heading mw-heading4"><h4 id="Enumerated_types">Enumerated types</h4></div>
<div class="excerpt-block"><style data-mw-deduplicate="TemplateStyles:r1066933788">
/* start https://en.wikipedia.org/ */
.mw-parser-output .excerpt-hat .mw-editsection-like{font-style:normal}
/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable dablink excerpt-hat selfref">This section is an excerpt from <a href="Enumerated_type#Go" title="Enumerated type">Enumerated type § Go</a>.<span class="mw-editsection-like "><span class="mw-editsection-bracket">[</span><a class="external text external" href="https://en.wikipedia.org/w/index.php?title=Enumerated_type&action=edit">edit</a><span class="mw-editsection-bracket">]</span></span></div><div class="excerpt">
<p>Go uses the <code>iota</code> keyword to create enumerated constants.<sup id="cite_ref-93" class="reference"><a href="#cite_note-93"><span class="cite-bracket">[</span>89<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-94" class="reference"><a href="#cite_note-94"><span class="cite-bracket">[</span>90<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kd">type</span><span class="w"> </span><span class="nx">ByteSize</span><span class="w"> </span><span class="kt">int</span>
<span class="kd">const</span><span class="w"> </span><span class="p">(</span>
<span class="w"> </span><span class="nx">_</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><span class="kc">iota</span><span class="w"> </span><span class="c1">// ignore first value by assigning to blank identifier; 0</span>
<span class="w"> </span><span class="nx">KB</span><span class="w"> </span><span class="nx">ByteSize</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="o"><<</span><span class="w"> </span><span class="p">(</span><span class="mi">10</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="kc">iota</span><span class="p">)</span><span class="w"> </span><span class="c1">// 1 << (10 * 1) == 1 << 10 == 1024; in binary 10000000000</span>
<span class="w"> </span><span class="nx">MB</span><span class="w"> </span><span class="c1">// 1 << (10 * 2) == 1048576; in binary 100000000000000000000</span>
<span class="w"> </span><span class="nx">GB</span><span class="w"> </span><span class="c1">// 1 << (10 * 3) == 1073741824; in binary 1000000000000000000000000000000</span>
<span class="p">)</span>
</pre></div></div></div>
<div class="mw-heading mw-heading3"><h3 id="Package_system">Package system</h3></div>
<p>In Go's package system, each package has a path (e.g., <code>"compress/bzip2"</code> or <code>"golang.org/x/net/html"</code>) and a name (e.g., <code>bzip2</code> or <code>html</code>). By default other packages' definitions must <i>always</i> be prefixed with the other package's name. However the name used can be changed from the package name, and if imported as <code>_</code>, then no package prefix is required. Only the <i>capitalized</i> names from other packages are accessible: <code>io.Reader</code> is public but <code>bzip2.reader</code> is not.<sup id="cite_ref-95" class="reference"><a href="#cite_note-95"><span class="cite-bracket">[</span>91<span class="cite-bracket">]</span></a></sup> The <code>go get</code> command can retrieve packages stored in a remote repository<sup id="cite_ref-96" class="reference"><a href="#cite_note-96"><span class="cite-bracket">[</span>92<span class="cite-bracket">]</span></a></sup> and developers are encouraged to develop packages inside a base path corresponding to a source repository (such as example.com/user_name/package_name) to reduce the likelihood of name collision with future additions to the standard library or other external libraries.<sup id="cite_ref-97" class="reference"><a href="#cite_note-97"><span class="cite-bracket">[</span>93<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Concurrency:_goroutines_and_channels"> Concurrency: goroutines and channels</h3></div>
<p>The Go language has built-in facilities, as well as library support, for writing <a href="Concurrent_programming" class="mw-redirect" title="Concurrent programming">concurrent programs</a>. The runtime is <a href="Asynchronous_I/O" title="Asynchronous I/O">asynchronous</a>: program execution that performs, for example, a network read will be suspended until data is available to process, allowing other parts of the program to perform other work. This is built into the runtime and does not require any changes in program code. The go runtime also automatically schedules concurrent operations (goroutines) across multiple CPUs; this can achieve parallelism for a properly written program.<sup id="cite_ref-concurrency-is-not_98-0" class="reference"><a href="#cite_note-concurrency-is-not-98"><span class="cite-bracket">[</span>94<span class="cite-bracket">]</span></a></sup>
</p><p>The primary concurrency construct is the <i>goroutine</i>, a type of <a href="Green_thread" title="Green thread">green thread</a>.<sup id="cite_ref-:0_99-0" class="reference"><a href="#cite_note-:0-99"><span class="cite-bracket">[</span>95<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Pages: 280–281">: 280–281 </span></sup> A function call prefixed with the <code>go</code> keyword starts a function in a new goroutine. The language specification does not specify how goroutines should be implemented, but current implementations multiplex a Go process's goroutines onto a smaller set of <a href="Thread_(computer_science)" class="mw-redirect" title="Thread (computer science)">operating-system threads</a>, similar to the scheduling performed in <a href="Erlang_(programming_language)" title="Erlang (programming language)">Erlang</a> and <a href="Haskell_(programming_language)" class="mw-redirect" title="Haskell (programming language)">Haskell's GHC runtime implementation</a>.<sup id="cite_ref-phrasebook_100-0" class="reference"><a href="#cite_note-phrasebook-100"><span class="cite-bracket">[</span>96<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 10">: 10 </span></sup>
</p><p>While a standard library package featuring most of the classical <a href="Concurrency_control" title="Concurrency control">concurrency control</a> structures (<a href="Mutex" class="mw-redirect" title="Mutex">mutex</a> locks, etc.) is available,<sup id="cite_ref-phrasebook_100-1" class="reference"><a href="#cite_note-phrasebook-100"><span class="cite-bracket">[</span>96<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 151–152">: 151–152 </span></sup> idiomatic concurrent programs instead prefer <i>channels</i>, which <a href="Message_passing" title="Message passing">send messages</a> between goroutines.<sup id="cite_ref-101" class="reference"><a href="#cite_note-101"><span class="cite-bracket">[</span>97<span class="cite-bracket">]</span></a></sup> Optional buffers store messages in <a href="FIFO_(computing_and_electronics)" title="FIFO (computing and electronics)">FIFO</a> order<sup id="cite_ref-summerfield_102-0" class="reference"><a href="#cite_note-summerfield-102"><span class="cite-bracket">[</span>98<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 43">: 43 </span></sup> and allow sending goroutines to proceed before their messages are received.<sup id="cite_ref-:0_99-1" class="reference"><a href="#cite_note-:0-99"><span class="cite-bracket">[</span>95<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page: 233">: 233 </span></sup>
</p><p>Channels are typed, so that a channel of type <span class="monospaced">chan <i>T</i></span> can only be used to transfer messages of type <span class="monospaced"><i>T</i></span>. Special syntax is used to operate on them; <span class="monospaced"><-ch</span> is an expression that causes the executing goroutine to block until a value comes in over the channel <span class="monospaced">ch</span>, while <span class="monospaced">ch <- x</span> sends the value <span class="monospaced">x</span> (possibly blocking until another goroutine receives the value). The built-in <span class="monospaced">switch</span>-like <span class="monospaced">select</span> statement can be used to implement non-blocking communication on multiple channels; see <a href="#Concurrencyexample">below</a> for an example. Go has a memory model describing how goroutines must use channels or other operations to safely share data.<sup id="cite_ref-103" class="reference"><a href="#cite_note-103"><span class="cite-bracket">[</span>99<span class="cite-bracket">]</span></a></sup>
</p><p>The existence of channels does not by itself set Go apart from <a href="Actor_model" title="Actor model">actor model</a>-style concurrent languages like Erlang, where messages are addressed directly to actors (corresponding to goroutines). In the actor model, channels are themselves actors, therefore addressing a channel just means to address an actor. The actor style can be simulated in Go by maintaining a one-to-one correspondence between goroutines and channels, but the language allows multiple goroutines to share a channel or a single goroutine to send and receive on multiple channels.<sup id="cite_ref-phrasebook_100-2" class="reference"><a href="#cite_note-phrasebook-100"><span class="cite-bracket">[</span>96<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 147">: 147 </span></sup>
</p><p>From these tools one can build concurrent constructs like <a href="Thread_pool" title="Thread pool">worker pools</a>, pipelines (in which, say, a file is decompressed and parsed as it downloads), background calls with timeout, "fan-out" parallel calls to a set of services, and others.<sup id="cite_ref-104" class="reference"><a href="#cite_note-104"><span class="cite-bracket">[</span>100<span class="cite-bracket">]</span></a></sup> Channels have also found uses further from the usual notion of interprocess communication, like serving as a concurrency-safe list of recycled buffers,<sup id="cite_ref-105" class="reference"><a href="#cite_note-105"><span class="cite-bracket">[</span>101<span class="cite-bracket">]</span></a></sup> implementing <a href="Coroutine" title="Coroutine">coroutines</a> (which helped inspire the name <i>goroutine</i>),<sup id="cite_ref-106" class="reference"><a href="#cite_note-106"><span class="cite-bracket">[</span>102<span class="cite-bracket">]</span></a></sup> and implementing <a href="Iterator" title="Iterator">iterators</a>.<sup id="cite_ref-107" class="reference"><a href="#cite_note-107"><span class="cite-bracket">[</span>103<span class="cite-bracket">]</span></a></sup>
</p><p>Concurrency-related structural conventions of Go (<a href="Channel_(programming)" title="Channel (programming)">channels</a> and alternative channel inputs) are derived from <a href="C._A._R._Hoare" class="mw-redirect" title="C. A. R. Hoare">Tony Hoare's</a> <a href="Communicating_sequential_processes" title="Communicating sequential processes">communicating sequential processes</a> model. Unlike previous concurrent programming languages such as <a href="Occam_(programming_language)" title="Occam (programming language)">Occam</a> or <a href="Limbo_(programming_language)" title="Limbo (programming language)">Limbo</a> (a language on which Go co-designer Rob Pike worked),<sup id="cite_ref-108" class="reference"><a href="#cite_note-108"><span class="cite-bracket">[</span>104<span class="cite-bracket">]</span></a></sup> Go does not provide any built-in notion of safe or verifiable concurrency.<sup id="cite_ref-memmodel_109-0" class="reference"><a href="#cite_note-memmodel-109"><span class="cite-bracket">[</span>105<span class="cite-bracket">]</span></a></sup> While the communicating-processes model is favored in Go, it is not the only one: all goroutines in a program share a single address space. This means that mutable objects and pointers can be shared between goroutines; see <a href="#Lack_of_data_race_safety">§ Lack of data race safety</a>, below.
</p>
<div class="mw-heading mw-heading4"><h4 id="Suitability_for_parallel_programming">Suitability for parallel programming</h4></div>
<p>Although Go's concurrency features are not aimed primarily at <a href="Parallel_computing" title="Parallel computing">parallel processing</a>,<sup id="cite_ref-concurrency-is-not_98-1" class="reference"><a href="#cite_note-concurrency-is-not-98"><span class="cite-bracket">[</span>94<span class="cite-bracket">]</span></a></sup> they can be used to program <a href="Shared-memory_architecture" title="Shared-memory architecture">shared-memory</a> <a href="Multiprocessing" title="Multiprocessing">multi-processor</a> machines. Various studies have been done into the effectiveness of this approach.<sup id="cite_ref-110" class="reference"><a href="#cite_note-110"><span class="cite-bracket">[</span>106<span class="cite-bracket">]</span></a></sup> One of these studies compared the size (in <a href="Lines_of_code" class="mw-redirect" title="Lines of code">lines of code</a>) and speed of programs written by a seasoned programmer not familiar with the language and corrections to these programs by a Go expert (from Google's development team), doing the same for <a href="Chapel_(programming_language)" title="Chapel (programming language)">Chapel</a>, <a href="Cilk" title="Cilk">Cilk</a> and <a href="Intel_Threading_Building_Blocks" class="mw-redirect" title="Intel Threading Building Blocks">Intel TBB</a>. The study found that the non-expert tended to write <a href="Fork%E2%80%93join_model" title="Fork–join model">divide-and-conquer</a> algorithms with one <span class="monospaced">go</span> statement per recursion, while the expert wrote distribute-work-synchronize programs using one goroutine per processor core. The expert's programs were usually faster, but also longer.<sup id="cite_ref-111" class="reference"><a href="#cite_note-111"><span class="cite-bracket">[</span>107<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="Lack_of_data_race_safety">Lack of data race safety</h4></div>
<p>Go's approach to concurrency can be summarized as "don't communicate by sharing memory; share memory by communicating".<sup id="cite_ref-112" class="reference"><a href="#cite_note-112"><span class="cite-bracket">[</span>108<span class="cite-bracket">]</span></a></sup> There are no restrictions on how goroutines access shared data, making <a href="Data_race" class="mw-redirect" title="Data race">data races</a> possible. Specifically, unless a program explicitly synchronizes via channels or other means, writes from one goroutine might be partly, entirely, or not at all visible to another, often with no guarantees about ordering of writes.<sup id="cite_ref-memmodel_109-1" class="reference"><a href="#cite_note-memmodel-109"><span class="cite-bracket">[</span>105<span class="cite-bracket">]</span></a></sup> Furthermore, Go's <i>internal data structures</i> like interface values, slice headers, hash tables, and string headers are not immune to data races, so type and memory safety can be violated in multithreaded programs that modify shared instances of those types without synchronization.<sup id="cite_ref-113" class="reference"><a href="#cite_note-113"><span class="cite-bracket">[</span>109<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-SPLASH2012_114-0" class="reference"><a href="#cite_note-SPLASH2012-114"><span class="cite-bracket">[</span>110<span class="cite-bracket">]</span></a></sup> Instead of language support, safe concurrent programming thus relies on conventions; for example, Chisnall recommends an idiom called "aliases <a href="Exclusive_or" title="Exclusive or">xor</a> mutable", meaning that passing a mutable value (or pointer) over a channel signals a transfer of ownership over the value to its receiver.<sup id="cite_ref-phrasebook_100-3" class="reference"><a href="#cite_note-phrasebook-100"><span class="cite-bracket">[</span>96<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 155">: 155 </span></sup> The gc toolchain has an optional data race detector that can check for unsynchronized access to shared memory during runtime since version 1.1,<sup id="cite_ref-115" class="reference"><a href="#cite_note-115"><span class="cite-bracket">[</span>111<span class="cite-bracket">]</span></a></sup> additionally a best-effort race detector is also included by default since version 1.6 of the gc runtime for access to the <code>map</code> data type.<sup id="cite_ref-116" class="reference"><a href="#cite_note-116"><span class="cite-bracket">[</span>112<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Binaries">Binaries</h3></div>
<p>The linker in the gc toolchain creates statically linked binaries by default; therefore all Go binaries include the Go runtime.<sup id="cite_ref-117" class="reference"><a href="#cite_note-117"><span class="cite-bracket">[</span>113<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-118" class="reference"><a href="#cite_note-118"><span class="cite-bracket">[</span>114<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Omissions">Omissions</h3></div>
<p>Go deliberately omits certain features common in other languages, including <a href="Inheritance_(object-oriented_programming)" title="Inheritance (object-oriented programming)">(implementation) inheritance</a>, <a href="Assertion_(software_development)" title="Assertion (software development)">assertions</a>,<sup id="cite_ref-119" class="reference"><a href="#cite_note-119"><span class="cite-bracket">[</span>e<span class="cite-bracket">]</span></a></sup> <a href="Pointer_arithmetic" class="mw-redirect" title="Pointer arithmetic">pointer arithmetic</a>,<sup id="cite_ref-noPointerArith_68-1" class="reference"><a href="#cite_note-noPointerArith-68"><span class="cite-bracket">[</span>d<span class="cite-bracket">]</span></a></sup> <a href="Type_conversion#Implicit_type_conversion" title="Type conversion">implicit type conversions</a>, <a href="Union_type#Untagged_unions" title="Union type">untagged unions</a>,<sup id="cite_ref-120" class="reference"><a href="#cite_note-120"><span class="cite-bracket">[</span>f<span class="cite-bracket">]</span></a></sup> and <a href="Tagged_union" title="Tagged union">tagged unions</a>.<sup id="cite_ref-123" class="reference"><a href="#cite_note-123"><span class="cite-bracket">[</span>g<span class="cite-bracket">]</span></a></sup> The designers added only those facilities that all three agreed on.<sup id="cite_ref-124" class="reference"><a href="#cite_note-124"><span class="cite-bracket">[</span>117<span class="cite-bracket">]</span></a></sup>
</p><p>Of the omitted language features, the designers explicitly argue against assertions and pointer arithmetic, while defending the choice to omit type inheritance as giving a more useful language, encouraging instead the use of <a href="Protocol_(object-oriented_programming)" class="mw-redirect" title="Protocol (object-oriented programming)">interfaces</a> to achieve <a href="Dynamic_dispatch" title="Dynamic dispatch">dynamic dispatch</a><sup id="cite_ref-125" class="reference"><a href="#cite_note-125"><span class="cite-bracket">[</span>h<span class="cite-bracket">]</span></a></sup> and <a href="Composition_over_inheritance" title="Composition over inheritance">composition</a> to reuse code. Composition and <a href="Delegation_(programming)" class="mw-redirect" title="Delegation (programming)">delegation</a> are in fact largely automated by <span class="monospaced">struct</span> embedding; according to researchers Schmager <i>et al.</i>, this feature "has many of the drawbacks of inheritance: it affects the public interface of objects, it is not fine-grained (i.e, no method-level control over embedding), methods of embedded objects cannot be hidden, and it is static", making it "not obvious" whether programmers will overuse it to the extent that programmers in other languages are reputed to overuse inheritance.<sup id="cite_ref-gohotdraw_76-1" class="reference"><a href="#cite_note-gohotdraw-76"><span class="cite-bracket">[</span>72<span class="cite-bracket">]</span></a></sup>
</p><p><a href="Exception_handling" title="Exception handling">Exception handling</a> was initially omitted in Go due to lack of a "design that gives value proportionate to the complexity".<sup id="cite_ref-126" class="reference"><a href="#cite_note-126"><span class="cite-bracket">[</span>118<span class="cite-bracket">]</span></a></sup> An exception-like <span class="monospaced">panic</span>/<span class="monospaced">recover</span> mechanism that avoids the usual <code>try-catch</code> control structure was proposed<sup id="cite_ref-127" class="reference"><a href="#cite_note-127"><span class="cite-bracket">[</span>119<span class="cite-bracket">]</span></a></sup> and released in the March 30, 2010 snapshot.<sup id="cite_ref-128" class="reference"><a href="#cite_note-128"><span class="cite-bracket">[</span>120<span class="cite-bracket">]</span></a></sup> The Go authors advise using it for unrecoverable errors such as those that should halt an entire program or server request, or as a shortcut to propagate errors up the stack within a package.<sup id="cite_ref-129" class="reference"><a href="#cite_note-129"><span class="cite-bracket">[</span>121<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-130" class="reference"><a href="#cite_note-130"><span class="cite-bracket">[</span>122<span class="cite-bracket">]</span></a></sup> Across package boundaries, Go includes a canonical error type, and multi-value returns using this type are the standard idiom.<sup id="cite_ref-langfaq_4-7" class="reference"><a href="#cite_note-langfaq-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Style">Style</h2></div>
<p>The Go authors put substantial effort into influencing the style of Go programs:
</p>
<ul><li>Indentation, spacing, and other surface-level details of code are automatically standardized by the <code>gofmt</code> tool. It uses tabs for indentation and blanks for alignment. Alignment assumes that an editor is using a fixed-width font.<sup id="cite_ref-131" class="reference"><a href="#cite_note-131"><span class="cite-bracket">[</span>123<span class="cite-bracket">]</span></a></sup> <code>golint</code> does additional style checks automatically, but has been deprecated and archived by the Go maintainers.<sup id="cite_ref-132" class="reference"><a href="#cite_note-132"><span class="cite-bracket">[</span>124<span class="cite-bracket">]</span></a></sup></li>
<li>Tools and libraries distributed with Go suggest standard approaches to things like API documentation (<code>godoc</code>),<sup id="cite_ref-eff_133-0" class="reference"><a href="#cite_note-eff-133"><span class="cite-bracket">[</span>125<span class="cite-bracket">]</span></a></sup> testing (<code>go test</code>), building (<code>go build</code>), package management (<code>go get</code>), and so on.</li>
<li>Go enforces rules that are recommendations in other languages, for example banning cyclic dependencies, unused variables<sup id="cite_ref-134" class="reference"><a href="#cite_note-134"><span class="cite-bracket">[</span>126<span class="cite-bracket">]</span></a></sup> or imports,<sup id="cite_ref-135" class="reference"><a href="#cite_note-135"><span class="cite-bracket">[</span>127<span class="cite-bracket">]</span></a></sup> and implicit type conversions.</li>
<li>The <i>omission</i> of certain features (for example, functional-programming shortcuts like <code>map</code> and Java-style <code>try</code>/<code>finally</code> blocks) tends to encourage a particular explicit, concrete, and imperative programming style.</li>
<li>On day one the Go team published a collection of Go idioms,<sup id="cite_ref-eff_133-1" class="reference"><a href="#cite_note-eff-133"><span class="cite-bracket">[</span>125<span class="cite-bracket">]</span></a></sup> and later also collected code review comments,<sup id="cite_ref-136" class="reference"><a href="#cite_note-136"><span class="cite-bracket">[</span>128<span class="cite-bracket">]</span></a></sup> talks,<sup id="cite_ref-137" class="reference"><a href="#cite_note-137"><span class="cite-bracket">[</span>129<span class="cite-bracket">]</span></a></sup> and official blog posts<sup id="cite_ref-138" class="reference"><a href="#cite_note-138"><span class="cite-bracket">[</span>130<span class="cite-bracket">]</span></a></sup> to teach Go style and coding philosophy.</li></ul>
<div class="mw-heading mw-heading2"><h2 id="Tools">Tools</h2></div>
<p>The main Go distribution includes tools for <a href="Build_automation" title="Build automation">building</a>, <a href="Unit_testing" title="Unit testing">testing</a>, and <a href="Static_program_analysis" title="Static program analysis">analyzing</a> code:
</p>
<ul><li><code>go build</code>, which builds Go binaries using only information in the source files themselves, no separate makefiles</li>
<li><code>go test</code>, for unit testing and microbenchmarks as well as fuzzing</li>
<li><code>go fmt</code>, for formatting code</li>
<li><code>go install</code>, for retrieving and installing remote packages</li>
<li><code>go vet</code>, a static analyzer looking for potential errors in code</li>
<li><code>go run</code>, a shortcut for building and executing code</li>
<li><code>go doc</code>, for displaying documentation</li>
<li><code>go generate</code>, a standard way to invoke code generators</li>
<li><code>go mod</code>, for creating a new module, adding dependencies, upgrading dependencies, etc.</li>
<li><code>go tool</code>, for invoking developer tools (added in Go version 1.24)</li></ul>
<p><br>
It also includes <a href="Profiling_(computer_programming)" title="Profiling (computer programming)">profiling</a> and <a href="Debugging" title="Debugging">debugging</a> support, <a href="Fuzzing" title="Fuzzing">fuzzing</a> capabilities to detect bugs, <a href="Run_time_(program_lifecycle_phase)" class="mw-redirect" title="Run time (program lifecycle phase)">runtime</a> instrumentation (for example, to track <a href="Garbage_collection_(computer_science)" title="Garbage collection (computer science)">garbage collection</a> pauses), and a <a href="Data_race" class="mw-redirect" title="Data race">data race</a> detector.
</p><p>Another tool maintained by the Go team but is not included in Go distributions is <code>gopls</code>, a language server that provides <a href="Integrated_development_environment" title="Integrated development environment">IDE</a> features such as <a href="Intelligent_code_completion" class="mw-redirect" title="Intelligent code completion">intelligent code completion</a> to <a href="Language_Server_Protocol" title="Language Server Protocol">Language Server Protocol</a> compatible editors.<sup id="cite_ref-139" class="reference"><a href="#cite_note-139"><span class="cite-bracket">[</span>131<span class="cite-bracket">]</span></a></sup>
</p><p>An ecosystem of third-party tools adds to the standard distribution, such as <code>gocode</code>, which enables code autocompletion in many text editors, <code>goimports</code>, which automatically adds/removes package imports as needed, and <code>errcheck</code>, which detects code that might unintentionally ignore errors.
</p>
<div class="mw-heading mw-heading2"><h2 id="Examples">Examples</h2></div>
<div class="mw-heading mw-heading3"><h3 id="Hello_world">Hello world</h3></div>
<div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kn">package</span><span class="w"> </span><span class="nx">main</span>
<span class="kn">import</span><span class="w"> </span><span class="s">"fmt"</span>
<span class="kd">func</span><span class="w"> </span><span class="nx">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">fmt</span><span class="p">.</span><span class="nx">Println</span><span class="p">(</span><span class="s">"hello world"</span><span class="p">)</span>
<span class="p">}</span>
</pre></div>
<p>where "fmt" is the package for <i>formatted <a href="Input/output" title="Input/output">I/O</a></i>, similar to C's <a href="C_file_input/output" title="C file input/output">C file input/output</a>.<sup id="cite_ref-140" class="reference"><a href="#cite_note-140"><span class="cite-bracket">[</span>132<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Concurrency">Concurrency</h3></div>
<p>The following simple program demonstrates Go's <a href="#Concurrency">concurrency features</a> to implement an asynchronous program. It launches two lightweight threads ("goroutines"): one waits for the user to type some text, while the other implements a timeout. The <span class="monospaced">select</span> statement waits for either of these goroutines to send a message to the main routine, and acts on the first message to arrive (example adapted from David Chisnall's book).<sup id="cite_ref-phrasebook_100-4" class="reference"><a href="#cite_note-phrasebook-100"><span class="cite-bracket">[</span>96<span class="cite-bracket">]</span></a></sup><sup class="reference nowrap"><span title="Page / location: 152">: 152 </span></sup>
</p>
<div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kn">package</span><span class="w"> </span><span class="nx">main</span>
<span class="kn">import</span><span class="w"> </span><span class="p">(</span>
<span class="w"> </span><span class="s">"fmt"</span>
<span class="w"> </span><span class="s">"time"</span>
<span class="p">)</span>
<span class="kd">func</span><span class="w"> </span><span class="nx">readword</span><span class="p">(</span><span class="nx">ch</span><span class="w"> </span><span class="kd">chan</span><span class="w"> </span><span class="kt">string</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">fmt</span><span class="p">.</span><span class="nx">Println</span><span class="p">(</span><span class="s">"Type a word, then hit Enter."</span><span class="p">)</span>
<span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">word</span><span class="w"> </span><span class="kt">string</span>
<span class="w"> </span><span class="nx">fmt</span><span class="p">.</span><span class="nx">Scanf</span><span class="p">(</span><span class="s">"%s"</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="nx">word</span><span class="p">)</span>
<span class="w"> </span><span class="nx">ch</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="nx">word</span>
<span class="p">}</span>
<span class="kd">func</span><span class="w"> </span><span class="nx">timeout</span><span class="p">(</span><span class="nx">t</span><span class="w"> </span><span class="kd">chan</span><span class="w"> </span><span class="kt">bool</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">time</span><span class="p">.</span><span class="nx">Sleep</span><span class="p">(</span><span class="mi">5</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="nx">time</span><span class="p">.</span><span class="nx">Second</span><span class="p">)</span>
<span class="w"> </span><span class="nx">t</span><span class="w"> </span><span class="o"><-</span><span class="w"> </span><span class="kc">false</span>
<span class="p">}</span>
<span class="kd">func</span><span class="w"> </span><span class="nx">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">t</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nb">make</span><span class="p">(</span><span class="kd">chan</span><span class="w"> </span><span class="kt">bool</span><span class="p">)</span>
<span class="w"> </span><span class="k">go</span><span class="w"> </span><span class="nx">timeout</span><span class="p">(</span><span class="nx">t</span><span class="p">)</span>
<span class="w"> </span><span class="nx">ch</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nb">make</span><span class="p">(</span><span class="kd">chan</span><span class="w"> </span><span class="kt">string</span><span class="p">)</span>
<span class="w"> </span><span class="k">go</span><span class="w"> </span><span class="nx">readword</span><span class="p">(</span><span class="nx">ch</span><span class="p">)</span>
<span class="w"> </span><span class="k">select</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="nx">word</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="o"><-</span><span class="nx">ch</span><span class="p">:</span>
<span class="w"> </span><span class="nx">fmt</span><span class="p">.</span><span class="nx">Println</span><span class="p">(</span><span class="s">"Received"</span><span class="p">,</span><span class="w"> </span><span class="nx">word</span><span class="p">)</span>
<span class="w"> </span><span class="k">case</span><span class="w"> </span><span class="o"><-</span><span class="nx">t</span><span class="p">:</span>
<span class="w"> </span><span class="nx">fmt</span><span class="p">.</span><span class="nx">Println</span><span class="p">(</span><span class="s">"Timeout."</span><span class="p">)</span>
<span class="w"> </span><span class="p">}</span>
<span class="p">}</span>
</pre></div>
<div class="mw-heading mw-heading3"><h3 id="Testing">Testing</h3></div>
<p>The testing package provides support for automated testing of go packages.<sup id="cite_ref-141" class="reference"><a href="#cite_note-141"><span class="cite-bracket">[</span>133<span class="cite-bracket">]</span></a></sup> Target function example:
</p>
<div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kd">func</span><span class="w"> </span><span class="nx">ExtractUsername</span><span class="p">(</span><span class="nx">email</span><span class="w"> </span><span class="kt">string</span><span class="p">)</span><span class="w"> </span><span class="kt">string</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">at</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">strings</span><span class="p">.</span><span class="nx">Index</span><span class="p">(</span><span class="nx">email</span><span class="p">,</span><span class="w"> </span><span class="s">"@"</span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="nx">email</span><span class="p">[:</span><span class="nx">at</span><span class="p">]</span>
<span class="p">}</span>
</pre></div>
<p>Test code (note that <b>assert</b> keyword is missing in Go; tests live in <filename>_test.go at the same package):
</p>
<div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kn">import</span><span class="w"> </span><span class="p">(</span>
<span class="w"> </span><span class="s">"testing"</span>
<span class="p">)</span>
<span class="kd">func</span><span class="w"> </span><span class="nx">TestExtractUsername</span><span class="p">(</span><span class="nx">t</span><span class="w"> </span><span class="o">*</span><span class="nx">testing</span><span class="p">.</span><span class="nx">T</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">t</span><span class="p">.</span><span class="nx">Run</span><span class="p">(</span><span class="s">"withoutDot"</span><span class="p">,</span><span class="w"> </span><span class="kd">func</span><span class="p">(</span><span class="nx">t</span><span class="w"> </span><span class="o">*</span><span class="nx">testing</span><span class="p">.</span><span class="nx">T</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">username</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">ExtractUsername</span><span class="p">(</span><span class="s">"r@google.com"</span><span class="p">)</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="nx">username</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="s">"r"</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">t</span><span class="p">.</span><span class="nx">Fatalf</span><span class="p">(</span><span class="s">"Got: %v\n"</span><span class="p">,</span><span class="w"> </span><span class="nx">username</span><span class="p">)</span>
<span class="w"> </span><span class="p">}</span>
<span class="w"> </span><span class="p">})</span>
<span class="w"> </span><span class="nx">t</span><span class="p">.</span><span class="nx">Run</span><span class="p">(</span><span class="s">"withDot"</span><span class="p">,</span><span class="w"> </span><span class="kd">func</span><span class="p">(</span><span class="nx">t</span><span class="w"> </span><span class="o">*</span><span class="nx">testing</span><span class="p">.</span><span class="nx">T</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">username</span><span class="w"> </span><span class="o">:=</span><span class="w"> </span><span class="nx">ExtractUsername</span><span class="p">(</span><span class="s">"jonh.smith@example.com"</span><span class="p">)</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="nx">username</span><span class="w"> </span><span class="o">!=</span><span class="w"> </span><span class="s">"jonh.smith"</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">t</span><span class="p">.</span><span class="nx">Fatalf</span><span class="p">(</span><span class="s">"Got: %v\n"</span><span class="p">,</span><span class="w"> </span><span class="nx">username</span><span class="p">)</span>
<span class="w"> </span><span class="p">}</span>
<span class="w"> </span><span class="p">})</span>
<span class="p">}</span>
</pre></div>
<p>It is possible to run tests in parallel.
</p>
<div class="mw-heading mw-heading3"><h3 id="Web_app">Web app</h3></div>
<p>The <a rel="nofollow" class="external text" href="https://pkg.go.dev/net/http">net/http</a><sup id="cite_ref-142" class="reference"><a href="#cite_note-142"><span class="cite-bracket">[</span>134<span class="cite-bracket">]</span></a></sup> package provides support for creating web applications.
</p><p>This example would show "Hello world!" when localhost:8080 is visited.
</p>
<div class="mw-highlight mw-highlight-lang-go mw-content-ltr" dir="ltr"><pre><span class="kn">package</span><span class="w"> </span><span class="nx">main</span>
<span class="kn">import</span><span class="w"> </span><span class="p">(</span>
<span class="w"> </span><span class="s">"fmt"</span>
<span class="w"> </span><span class="s">"log"</span>
<span class="w"> </span><span class="s">"net/http"</span>
<span class="p">)</span>
<span class="kd">func</span><span class="w"> </span><span class="nx">helloFunc</span><span class="p">(</span><span class="nx">w</span><span class="w"> </span><span class="nx">http</span><span class="p">.</span><span class="nx">ResponseWriter</span><span class="p">,</span><span class="w"> </span><span class="nx">r</span><span class="w"> </span><span class="o">*</span><span class="nx">http</span><span class="p">.</span><span class="nx">Request</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">fmt</span><span class="p">.</span><span class="nx">Fprintf</span><span class="p">(</span><span class="nx">w</span><span class="p">,</span><span class="w"> </span><span class="s">"Hello world!"</span><span class="p">)</span>
<span class="p">}</span>
<span class="kd">func</span><span class="w"> </span><span class="nx">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="nx">http</span><span class="p">.</span><span class="nx">HandleFunc</span><span class="p">(</span><span class="s">"/"</span><span class="p">,</span><span class="w"> </span><span class="nx">helloFunc</span><span class="p">)</span>
<span class="w"> </span><span class="nx">log</span><span class="p">.</span><span class="nx">Fatal</span><span class="p">(</span><span class="nx">http</span><span class="p">.</span><span class="nx">ListenAndServe</span><span class="p">(</span><span class="s">":8080"</span><span class="p">,</span><span class="w"> </span><span class="kc">nil</span><span class="p">))</span>
<span class="p">}</span>
</pre></div>
<div class="mw-heading mw-heading2"><h2 id="Applications">Applications</h2></div>
<p>Go has found widespread adoption in various domains due to its robust standard library and ease of use.<sup id="cite_ref-code-mag-2022-11-24_143-0" class="reference"><a href="#cite_note-code-mag-2022-11-24-143"><span class="cite-bracket">[</span>135<span class="cite-bracket">]</span></a></sup>
</p><p>Popular applications include: <a href="Caddy_(web_server)" title="Caddy (web server)">Caddy</a>, a web server that automates the process of setting up HTTPS,<sup id="cite_ref-linuxmag-213-2018_144-0" class="reference"><a href="#cite_note-linuxmag-213-2018-144"><span class="cite-bracket">[</span>136<span class="cite-bracket">]</span></a></sup> <a href="Docker_(software)" title="Docker (software)">Docker</a>, which provides a platform for containerization, aiming to ease the complexities of software development and deployment,<sup id="cite_ref-codemag-20220831_145-0" class="reference"><a href="#cite_note-codemag-20220831-145"><span class="cite-bracket">[</span>137<span class="cite-bracket">]</span></a></sup> <a href="Kubernetes" title="Kubernetes">Kubernetes</a>, which automates the deployment, scaling, and management of containerized applications,<sup id="cite_ref-codemag-20230224_146-0" class="reference"><a href="#cite_note-codemag-20230224-146"><span class="cite-bracket">[</span>138<span class="cite-bracket">]</span></a></sup> <a href="CockroachDB" title="CockroachDB">CockroachDB</a>, a distributed SQL database engineered for scalability and strong consistency,<sup id="cite_ref-sigmod20-cockroach_147-0" class="reference"><a href="#cite_note-sigmod20-cockroach-147"><span class="cite-bracket">[</span>139<span class="cite-bracket">]</span></a></sup> and <a href="Hugo_(software)" title="Hugo (software)">Hugo</a>, a static site generator that prioritizes speed and flexibility, allowing developers to create websites efficiently.<sup id="cite_ref-linuxjournal-20220913_148-0" class="reference"><a href="#cite_note-linuxjournal-20220913-148"><span class="cite-bracket">[</span>140<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Reception">Reception</h2></div>
<p>The interface system, and the deliberate omission of inheritance, were praised by Michele Simionato, who likened these characteristics to those of <a href="Standard_ML" title="Standard ML">Standard ML</a>, calling it "a shame that no popular language has followed [this] particular route".<sup id="cite_ref-149" class="reference"><a href="#cite_note-149"><span class="cite-bracket">[</span>141<span class="cite-bracket">]</span></a></sup>
</p><p>Dave Astels at <a href="Engine_Yard" title="Engine Yard">Engine Yard</a> wrote in 2009:<sup id="cite_ref-150" class="reference"><a href="#cite_note-150"><span class="cite-bracket">[</span>142<span class="cite-bracket">]</span></a></sup>
</p>
<blockquote class="templatequote"><p>Go is extremely easy to dive into. There are a minimal number of fundamental language concepts and the <a href="Syntax_(programming_languages)" title="Syntax (programming languages)">syntax</a> is clean and designed to be clear and unambiguous.
Go <i>is</i> still experimental and still a little rough around the edges.</p></blockquote>
<p>Go was named Programming Language of the Year by the <a href="TIOBE_Programming_Community_Index" class="mw-redirect" title="TIOBE Programming Community Index">TIOBE Programming Community Index</a> in its first year, 2009, for having a larger 12-month increase in popularity (in only 2 months, after its introduction in November) than any other language that year, and reached 13th place by January 2010,<sup id="cite_ref-151" class="reference"><a href="#cite_note-151"><span class="cite-bracket">[</span>143<span class="cite-bracket">]</span></a></sup> surpassing established languages like <a href="Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a>. By June 2015, its ranking had dropped to below 50th in the index, placing it lower than <a href="COBOL" title="COBOL">COBOL</a> and <a href="Fortran" title="Fortran">Fortran</a>.<sup id="cite_ref-152" class="reference"><a href="#cite_note-152"><span class="cite-bracket">[</span>144<span class="cite-bracket">]</span></a></sup> But as of January 2017, its ranking had surged to 13th, indicating significant growth in popularity and adoption. Go was again awarded TIOBE Programming Language of the Year in 2016.<sup id="cite_ref-153" class="reference"><a href="#cite_note-153"><span class="cite-bracket">[</span>145<span class="cite-bracket">]</span></a></sup>
</p><p><a href="Bruce_Eckel" title="Bruce Eckel">Bruce Eckel</a> has stated:<sup id="cite_ref-154" class="reference"><a href="#cite_note-154"><span class="cite-bracket">[</span>146<span class="cite-bracket">]</span></a></sup>
</p>
<blockquote class="templatequote"><p>The complexity of <a href="C%2B%2B" title="C++">C++</a> (even more complexity has been added in the new C++), and the resulting impact on productivity, is no longer justified. All the hoops that the C++ programmer had to jump through in order to use a C-compatible language make no sense anymore -- they're just a waste of time and effort. Go makes much more sense for the class of problems that C++ was originally intended to solve.</p></blockquote>
<p>A 2011 evaluation of the language and its <span class="monospaced">gc</span> implementation in comparison to C++ (<a href="GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a>), Java and <a href="Scala_(programming_language)" title="Scala (programming language)">Scala</a> by a Google engineer found:
</p>
<blockquote class="templatequote"><p>Go offers interesting language features, which also allow for a concise and standardized notation. The compilers for this language are still immature, which reflects in both performance and binary sizes.</p></blockquote><div class="templatequotecite"><p style="display: inline; padding-left: 2.3em;">— R. Hundt<sup id="cite_ref-155" class="reference"><a href="#cite_note-155"><span class="cite-bracket">[</span>147<span class="cite-bracket">]</span></a></sup></p></div>
<p>The evaluation got a rebuttal from the Go development team. Ian Lance Taylor, who had improved the Go code for Hundt's paper, had not been aware of the intention to publish his code, and says that his version was "never intended to be an example of idiomatic or efficient Go"; Russ Cox then optimized the Go code, as well as the C++ code, and got the Go code to run almost as fast as the C++ version and more than an order of magnitude faster than the code in the paper.<sup id="cite_ref-156" class="reference"><a href="#cite_note-156"><span class="cite-bracket">[</span>148<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li>Go's <i><a href="Null_pointer" title="Null pointer">nil</a></i> combined with the lack of <a href="Algebraic_types" class="mw-redirect" title="Algebraic types">algebraic types</a> leads to difficulty handling failures and <a href="Base_case_(recursion)" class="mw-redirect" title="Base case (recursion)">base cases</a>.<sup id="cite_ref-yager_157-0" class="reference"><a href="#cite_note-yager-157"><span class="cite-bracket">[</span>149<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-dobronszki_158-0" class="reference"><a href="#cite_note-dobronszki-158"><span class="cite-bracket">[</span>150<span class="cite-bracket">]</span></a></sup></li>
<li>Go does not allow an opening brace to appear on its own line, which forces all Go programmers to use the same brace style.<sup id="cite_ref-159" class="reference"><a href="#cite_note-159"><span class="cite-bracket">[</span>151<span class="cite-bracket">]</span></a></sup></li>
<li>Go has been criticized for focusing on simplicity of implementation rather than correctness and flexibility; as an example, the language uses <a href="POSIX" title="POSIX">POSIX</a> file semantics on all platforms, and therefore provides incorrect information on platforms such as <a href="Microsoft_Windows" title="Microsoft Windows">Windows</a> (which do not follow the aforementioned standard).<sup id="cite_ref-160" class="reference"><a href="#cite_note-160"><span class="cite-bracket">[</span>152<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-161" class="reference"><a href="#cite_note-161"><span class="cite-bracket">[</span>153<span class="cite-bracket">]</span></a></sup></li>
<li>A study showed that it is as easy to make concurrency bugs with message passing as with shared memory, sometimes even more.<sup id="cite_ref-162" class="reference"><a href="#cite_note-162"><span class="cite-bracket">[</span>154<span class="cite-bracket">]</span></a></sup></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Naming_dispute">Naming dispute</h2></div>
<p>On November 10, 2009, the day of the general release of the language, Francis McCabe, developer of the <a href="Go!_(programming_language)" title="Go! (programming language)">Go! programming language</a> (note the exclamation point), requested a name change of Google's language to prevent confusion with his language, which he had spent 10 years developing.<sup id="cite_ref-163" class="reference"><a href="#cite_note-163"><span class="cite-bracket">[</span>155<span class="cite-bracket">]</span></a></sup> McCabe raised concerns that "the 'big guy' will end up steam-rollering over" him, and this concern resonated with the more than 120 developers who commented on Google's official issues thread saying they should change the name, with some<sup id="cite_ref-infoweek_164-0" class="reference"><a href="#cite_note-infoweek-164"><span class="cite-bracket">[</span>156<span class="cite-bracket">]</span></a></sup> even saying the issue contradicts Google's motto of: <a href="Don't_be_evil" title="Don't be evil">Don't be evil</a>.<sup id="cite_ref-issue9_165-0" class="reference"><a href="#cite_note-issue9-165"><span class="cite-bracket">[</span>157<span class="cite-bracket">]</span></a></sup>
</p><p>
On October 12, 2010, the filed public issue ticket was closed by Google developer Russ Cox (@rsc) with the custom status "Unfortunate" accompanied by the following comment: </p><blockquote><p>"There are many computing products and services named Go. In the 11 months since our release, there has been minimal confusion of the two languages."<sup id="cite_ref-issue9_165-1" class="reference"><a href="#cite_note-issue9-165"><span class="cite-bracket">[</span>157<span class="cite-bracket">]</span></a></sup></p></blockquote>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1266661725">
/* start https://en.wikipedia.org/ */
.mw-parser-output .portalbox{padding:0;margin:0.5em 0;display:table;box-sizing:border-box;max-width:175px;list-style:none}.mw-parser-output .portalborder{border:1px solid var(--border-color-base,#a2a9b1);padding:0.1em;background:var(--background-color-neutral-subtle,#f8f9fa)}.mw-parser-output .portalbox-entry{display:table-row;font-size:85%;line-height:110%;height:1.9em;font-style:italic;font-weight:bold}.mw-parser-output .portalbox-image{display:table-cell;padding:0.2em;vertical-align:middle;text-align:center}.mw-parser-output .portalbox-link{display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle}@media(min-width:720px){.mw-parser-output .portalleft{margin:0.5em 1em 0.5em 0}.mw-parser-output .portalright{clear:right;float:right;margin:0.5em 0 0.5em 1em}}
/* end https://en.wikipedia.org/ */
</style>
<ul><li><a href="Fat_pointer" class="mw-redirect" title="Fat pointer">Fat pointer</a></li>
<li><a href="Comparison_of_programming_languages" title="Comparison of programming languages">Comparison of programming languages</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */
.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}
/* end https://en.wikipedia.org/ */
</style><div class="reflist reflist-lower-alpha">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-57"><span class="mw-cite-backlink"><b><a href="#cite_ref-57">^</a></b></span> <span class="reference-text">But "To allow complex statements to occupy a single line, a semicolon may be omitted before a closing ) or }".<sup id="cite_ref-56" class="reference"><a href="#cite_note-56"><span class="cite-bracket">[</span>56<span class="cite-bracket">]</span></a></sup></span>
</li>
<li id="cite_note-59"><span class="mw-cite-backlink"><b><a href="#cite_ref-59">^</a></b></span> <span class="reference-text">"if the newline comes after a token that could end a statement, [the lexer will] insert a semicolon".<sup id="cite_ref-58" class="reference"><a href="#cite_note-58"><span class="cite-bracket">[</span>57<span class="cite-bracket">]</span></a></sup></span>
</li>
<li id="cite_note-60"><span class="mw-cite-backlink"><b><a href="#cite_ref-60">^</a></b></span> <span class="reference-text">Usually, exactly one of the result and error values has a value other than the type's zero value; sometimes both do, as when a read or write can only be partially completed, and sometimes neither, as when a read returns 0 bytes. See <a href="Semipredicate_problem#Multivalued_return" title="Semipredicate problem">Semipredicate problem: Multivalued return</a>.</span>
</li>
<li id="cite_note-noPointerArith-68"><span class="mw-cite-backlink">^ <a href="#cite_ref-noPointerArith_68-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-noPointerArith_68-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">Language FAQ "Why is there no pointer arithmetic? Safety ... never derive an illegal address that succeeds incorrectly ... using array indices can be as efficient as ... pointer arithmetic ... simplify the implementation of the garbage collector...."<sup id="cite_ref-langfaq_4-3" class="reference"><a href="#cite_note-langfaq-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup></span>
</li>
<li id="cite_note-119"><span class="mw-cite-backlink"><b><a href="#cite_ref-119">^</a></b></span> <span class="reference-text">Language FAQ "Why does Go not have assertions? ...our experience has been that programmers use them as a crutch to avoid thinking about proper error handling and reporting...."<sup id="cite_ref-langfaq_4-2" class="reference"><a href="#cite_note-langfaq-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup></span>
</li>
<li id="cite_note-120"><span class="mw-cite-backlink"><b><a href="#cite_ref-120">^</a></b></span> <span class="reference-text">Language FAQ "Why are there no untagged unions...? [they] would violate Go's memory safety guarantees."<sup id="cite_ref-langfaq_4-4" class="reference"><a href="#cite_note-langfaq-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup></span>
</li>
<li id="cite_note-123"><span class="mw-cite-backlink"><b><a href="#cite_ref-123">^</a></b></span> <span class="reference-text">Language FAQ "Why does Go not have variant types? ... We considered [them but] they overlap in confusing ways with interfaces.... [S]ome of what variant types address is already covered, ... although not as elegantly."<sup id="cite_ref-langfaq_4-5" class="reference"><a href="#cite_note-langfaq-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> (The tag of an interface type<sup id="cite_ref-121" class="reference"><a href="#cite_note-121"><span class="cite-bracket">[</span>115<span class="cite-bracket">]</span></a></sup> is accessed with a type assertion<sup id="cite_ref-122" class="reference"><a href="#cite_note-122"><span class="cite-bracket">[</span>116<span class="cite-bracket">]</span></a></sup>).</span>
</li>
<li id="cite_note-125"><span class="mw-cite-backlink"><b><a href="#cite_ref-125">^</a></b></span> <span class="reference-text">Questions "How do I get dynamic dispatch of methods?" and "Why is there no type inheritance?" in the language FAQ.<sup id="cite_ref-langfaq_4-6" class="reference"><a href="#cite_note-langfaq-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<div role="note" class="hatnote navigation-not-searchable">This article incorporates material from the <a rel="nofollow" class="external text" href="https://golang.org/doc/go_tutorial.html">official Go tutorial</a>, which is licensed under the Creative Commons Attribution 3.0 license.</div>
<div class="reflist">
<div class="mw-references-wrap mw-references-columns"><ol class="references">
<li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */
.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}
/* end https://en.wikipedia.org/ */
</style><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/doc/codewalk/functions/">"Codewalk: First-Class Functions in Go"</a>. <q>Go supports first class functions, higher-order functions, user-defined function types, function literals, closures, and multiple return values. This rich feature set supports a functional programming style in a strongly typed language.</q></cite></span>
</li>
<li id="cite_note-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-2">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/faq#Is_Go_an_object-oriented_language">"Is Go an object-oriented language?"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">April 13,</span> 2019</span>. <q>Although Go has types and methods and allows an object-oriented style of programming, there is no type hierarchy.</q></cite></span>
</li>
<li id="cite_note-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-3">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://talks.golang.org/2012/chat.slide#5">"Go: code that grows with grace"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">June 24,</span> 2018</span>. <q>Go is Object Oriented, but not in the usual way.</q></cite></span>
</li>
<li id="cite_note-langfaq-4"><span class="mw-cite-backlink">^ <a href="#cite_ref-langfaq_4-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-langfaq_4-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-langfaq_4-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-langfaq_4-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-langfaq_4-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-langfaq_4-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-langfaq_4-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-langfaq_4-7"><sup><i><b>h</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/go_faq.html">"Language Design FAQ"</a>. <i>The Go Programming Language</i>. January 16, 2010<span class="reference-accessdate">. Retrieved <span class="nowrap">February 27,</span> 2010</span>.</cite></span>
</li>
<li id="cite_note-license-5"><span class="mw-cite-backlink">^ <a href="#cite_ref-license_5-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-license_5-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/LICENSE">"Text file LICENSE"</a>. <i>The Go Programming Language</i><span class="reference-accessdate">. Retrieved <span class="nowrap">October 5,</span> 2012</span>.</cite></span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/ref/spec#Introduction">"The Go Programming Language Specification - the Go Programming Language"</a>.</cite></span>
</li>
<li id="cite_note-structural_typing-7"><span class="mw-cite-backlink">^ <a href="#cite_ref-structural_typing_7-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-structural_typing_7-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/faq#implements_interface">"Why doesn't Go have "implements" declarations?"</a>. <i>The Go Programming Language</i><span class="reference-accessdate">. Retrieved <span class="nowrap">October 1,</span> 2015</span>.</cite></span>
</li>
<li id="cite_note-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-8">^</a></b></span> <span class="reference-text"><cite id="CITEREFPike2014" class="citation web cs1">Pike, Rob (December 22, 2014). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220407025913/https://twitter.com/rob_pike/status/546973312543227904">"Rob Pike on Twitter"</a>. Archived from <a rel="nofollow" class="external text" href="https://twitter.com/rob_pike/status/546973312543227904">the original</a> on April 7, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">March 13,</span> 2016</span>. <q>Go has structural typing, not duck typing. Full interface satisfaction is checked and required.</q></cite></span>
</li>
<li id="cite_note-openbsd-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-openbsd_9-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://ports.su/lang/go">"lang/go: go-1.4"</a>. <i>OpenBSD ports</i>. December 23, 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">January 19,</span> 2015</span>.</cite></span>
</li>
<li id="cite_note-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-10">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://go-lang.cat-v.org/os-ports">"Go Porting Efforts"</a>. <i>Go Language Resources</i>. cat-v. January 12, 2010<span class="reference-accessdate">. Retrieved <span class="nowrap">January 18,</span> 2010</span>.</cite></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/PATENTS">"Additional IP Rights Grant"</a>. <i>The Go Programming Language</i><span class="reference-accessdate">. Retrieved <span class="nowrap">October 5,</span> 2012</span>.</cite></span>
</li>
<li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.w3schools.com/go/go_introduction.php">"Go Introduction"</a>. <i>www.w3schools.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">November 23,</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-techcrunch-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-techcrunch_13-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFKincaid2009" class="citation news cs1">Kincaid, Jason (November 10, 2009). <a rel="nofollow" class="external text" href="https://techcrunch.com/2009/11/10/google-go-language/">"Google's Go: A New Programming Language That's Python Meets C++"</a>. <i>TechCrunch</i><span class="reference-accessdate">. Retrieved <span class="nowrap">January 18,</span> 2010</span>.</cite></span>
</li>
<li id="cite_note-boldly-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-boldly_14-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFMetz2011" class="citation web cs1">Metz, Cade (May 5, 2011). <a rel="nofollow" class="external text" href="https://www.theregister.co.uk/2011/05/05/google_go/">"Google Go boldly goes where no code has gone before"</a>. <i>The Register</i>.</cite></span>
</li>
<li id="cite_note-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-15">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/doc/faq#go_or_golang">"Is the language called Go or Golang?"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">March 16,</span> 2022</span>. <q>The language is called Go.</q></cite></span>
</li>
<li id="cite_note-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-16">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/go1.5#implementation">"Go 1.5 Release Notes"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">January 28,</span> 2016</span>. <q>The compiler and runtime are now implemented in Go and assembler, without C.</q></cite></span>
</li>
<li id="cite_note-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-17">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/golang/go">"The Go programming language"</a>. <i><a href="GitHub" title="GitHub">GitHub</a></i><span class="reference-accessdate">. Retrieved <span class="nowrap">November 1,</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-18">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/golang/gofrontend">"gofrontend"</a>. <i><a href="GitHub" title="GitHub">GitHub</a></i><span class="reference-accessdate">. Retrieved <span class="nowrap">November 1,</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gccgo/">"gccgo"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">November 1,</span> 2024</span>. <q>gccgo, the GNU compiler for the Go programming language</q></cite></span>
</li>
<li id="cite_note-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-20">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.googlesource.com/gollvm/">"Gollvm"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">November 1,</span> 2024</span>. <q>Gollvm is an LLVM-based Go compiler.</q></cite></span>
</li>
<li id="cite_note-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-21">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/gopherjs/gopherjs">"A compiler from Go to JavaScript for running Go code in a browser: Gopherjs/Gopherjs"</a>. <i><a href="GitHub" title="GitHub">GitHub</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20231212143621/https://github.com/gopherjs/gopherjs">Archived</a> from the original on December 12, 2023.</cite></span>
</li>
<li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://talks.golang.org/2012/splash.article">"Go at Google: Language Design in the Service of Software Engineering"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">October 8,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-23"><span class="mw-cite-backlink"><b><a href="#cite_ref-23">^</a></b></span> <span class="reference-text"><cite id="CITEREFPike2010" class="citation web cs1">Pike, Rob (April 28, 2010). <a rel="nofollow" class="external text" href="http://www.stanford.edu/class/ee380/Abstracts/100428.html">"Another Go at Language Design"</a>. <i>Stanford EE Computer Systems Colloquium</i>. <a href="Stanford_University" title="Stanford University">Stanford University</a>.</cite> <a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=7VcArS4Wpqk">Video available</a>.</span>
</li>
<li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/faq#different_syntax">"Frequently Asked Questions (FAQ) - The Go Programming Language"</a>. <i>The Go Programming Language</i><span class="reference-accessdate">. Retrieved <span class="nowrap">February 26,</span> 2016</span>.</cite></span>
</li>
<li id="cite_note-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-25">^</a></b></span> <span class="reference-text"><cite id="CITEREFBinstock2011" class="citation web cs1">Binstock, Andrew (May 18, 2011). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20130105013259/https://www.drdobbs.com/open-source/interview-with-ken-thompson/229502480">"Dr. Dobb's: Interview with Ken Thompson"</a>. <i>Dr. Dobb's</i>. Archived from <a rel="nofollow" class="external text" href="http://www.drdobbs.com/open-source/interview-with-ken-thompson/229502480">the original</a> on January 5, 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">February 7,</span> 2014</span>.</cite></span>
</li>
<li id="cite_note-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-26">^</a></b></span> <span class="reference-text"><cite id="CITEREFPike2012" class="citation web cs1">Pike, Rob (2012). <a rel="nofollow" class="external text" href="http://commandcenter.blogspot.mx/2012/06/less-is-exponentially-more.html">"Less is exponentially more"</a>.</cite></span>
</li>
<li id="cite_note-27"><span class="mw-cite-backlink"><b><a href="#cite_ref-27">^</a></b></span> <span class="reference-text"><cite id="CITEREFGriesemer2015" class="citation web cs1">Griesemer, Robert (2015). <a rel="nofollow" class="external text" href="https://talks.golang.org/2015/gophercon-goevolution.slide#4">"The Evolution of Go"</a>.</cite></span>
</li>
<li id="cite_note-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-28">^</a></b></span> <span class="reference-text"><cite id="CITEREFGriesemerPikeThompsonTaylor" class="citation web cs1">Griesemer, Robert; Pike, Rob; Thompson, Ken; Taylor, Ian; Cox, Russ; Kim, Jini; Langley, Adam. <a rel="nofollow" class="external text" href="https://opensource.googleblog.com/2009/11/hey-ho-lets-go.html">"Hey! Ho! Let's Go!"</a>. <i>Google Open Source</i><span class="reference-accessdate">. Retrieved <span class="nowrap">May 17,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-29">^</a></b></span> <span class="reference-text"><cite id="CITEREFShankland2012" class="citation news cs1">Shankland, Stephen (March 30, 2012). <a rel="nofollow" class="external text" href="https://www.cnet.com/news/googles-go-language-turns-one-wins-a-spot-at-youtube/">"Google's Go language turns one, wins a spot at YouTube: The lower-level programming language has matured enough to sport the 1.0 version number. And it's being used for real work at Google"</a>. News. <i>CNet</i>. CBS Interactive Inc<span class="reference-accessdate">. Retrieved <span class="nowrap">August 6,</span> 2017</span>. <q>Google has released version 1 of its Go programming language, an ambitious attempt to improve upon giants of the lower-level programming world such as C and C++.</q></cite></span>
</li>
<li id="cite_note-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-30">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/devel/release.html">"Release History"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-faq-31"><span class="mw-cite-backlink"><b><a href="#cite_ref-faq_31-0">^</a></b></span> <span class="reference-text"><cite class="citation news cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/faq#internal_usage">"Go FAQ: Is Google using Go internally?"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">March 9,</span> 2013</span>.</cite></span>
</li>
<li id="cite_note-32"><span class="mw-cite-backlink"><b><a href="#cite_ref-32">^</a></b></span> <span class="reference-text">The Go Programming Language and Environment. Communications of the ACM. <a rel="nofollow" class="external free" href="https://dl.acm.org/doi/pdf/10.1145/3488716">https://dl.acm.org/doi/pdf/10.1145/3488716</a></span>
</li>
<li id="cite_note-33"><span class="mw-cite-backlink"><b><a href="#cite_ref-33">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/blog/gopher">"The Go Gopher - The Go Programming Language"</a>. <i>go.dev</i><span class="reference-accessdate">. Retrieved <span class="nowrap">February 9,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-34">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://blog.golang.org/go-fonts">"Go fonts"</a>. Go. November 16, 2016<span class="reference-accessdate">. Retrieved <span class="nowrap">March 12,</span> 2019</span>.</cite></span>
</li>
<li id="cite_note-35"><span class="mw-cite-backlink"><b><a href="#cite_ref-35">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/golang/image/tree/master/font/gofont/ttfs">"Go Font TTFs"</a>. <i>GitHub</i><span class="reference-accessdate">. Retrieved <span class="nowrap">April 2,</span> 2019</span>.</cite></span>
</li>
<li id="cite_note-36"><span class="mw-cite-backlink"><b><a href="#cite_ref-36">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://blog.golang.org/go-brand">"Go's New Brand"</a>. <i>The Go Blog</i><span class="reference-accessdate">. Retrieved <span class="nowrap">November 9,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-37"><span class="mw-cite-backlink"><b><a href="#cite_ref-37">^</a></b></span> <span class="reference-text"><cite id="CITEREFMerrick2021" class="citation web cs1">Merrick, Alice (March 9, 2021). <a rel="nofollow" class="external text" href="https://go.dev/blog/survey2020-results#:~:text=Among%20the%2026%25%20of%20respondents%20who%20said%20Go%20lacks%20language%20features%20they%20need%2C%2088%25%20selected%20generics%20as%20a%20critical%20missing%20feature.">"Go Developer Survey 2020 Results"</a>. <i>Go Programming Language</i><span class="reference-accessdate">. Retrieved <span class="nowrap">March 16,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-append-38"><span class="mw-cite-backlink">^ <a href="#cite_ref-append_38-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-append_38-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFPike2013" class="citation web cs1">Pike, Rob (September 26, 2013). <a rel="nofollow" class="external text" href="https://blog.golang.org/slices">"Arrays, slices (and strings): The mechanics of 'append'"</a>. <i>The Go Blog</i><span class="reference-accessdate">. Retrieved <span class="nowrap">March 7,</span> 2015</span>.</cite></span>
</li>
<li id="cite_note-39"><span class="mw-cite-backlink"><b><a href="#cite_ref-39">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://channel9.msdn.com/Blogs/Charles/Erik-Meijer-and-Robert-Griesemer-Go">"E2E: Erik Meijer and Robert Griesemer"</a>. <i>Channel 9</i>. Microsoft. May 7, 2012.</cite></span>
</li>
<li id="cite_note-40"><span class="mw-cite-backlink"><b><a href="#cite_ref-40">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.googlesource.com/proposal/+/master/design/go2draft.md">"Go 2 Draft Designs"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">September 12,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-41"><span class="mw-cite-backlink"><b><a href="#cite_ref-41">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://blog.golang.org/go2draft">"The Go Blog: Go 2 Draft Designs"</a>. August 28, 2018.</cite></span>
</li>
<li id="cite_note-42"><span class="mw-cite-backlink"><b><a href="#cite_ref-42">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/golang/go/issues/32437">"Proposal: A built-in Go error check function, "try""</a>. <i>Go repository on GitHub</i><span class="reference-accessdate">. Retrieved <span class="nowrap">March 16,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-43"><span class="mw-cite-backlink"><b><a href="#cite_ref-43">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md">"Type Parameters — Draft Design"</a>. <i>go.googlesource.com</i>.</cite></span>
</li>
<li id="cite_note-44"><span class="mw-cite-backlink"><b><a href="#cite_ref-44">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://bitfieldconsulting.com/golang/generics">"Generics in Go"</a>. <i>bitfieldconsulting.com</i>. December 17, 2021.</cite></span>
</li>
<li id="cite_note-45"><span class="mw-cite-backlink"><b><a href="#cite_ref-45">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/blog/go1.18">"Go 1.18 is released!"</a>. <i>Go Programming Language</i>. March 15, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">March 16,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-46"><span class="mw-cite-backlink"><b><a href="#cite_ref-46">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/go1compat">"Go 1 and the Future of Go Programs"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-47"><span class="mw-cite-backlink"><b><a href="#cite_ref-47">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/doc/go1.24">"Go 1.24 Release Notes"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-48"><span class="mw-cite-backlink"><b><a href="#cite_ref-48">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/devel/release.html#policy">"Release History"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-49"><span class="mw-cite-backlink"><b><a href="#cite_ref-49">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/blog/compat">"Backward Compatibility, Go 1.21, and Go 2"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-50"><span class="mw-cite-backlink"><b><a href="#cite_ref-50">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/doc/asm">"A Quick Guide to Go's Assembler"</a>. <i>go.dev</i><span class="reference-accessdate">. Retrieved <span class="nowrap">December 31,</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-go_lang_video_2009-51"><span class="mw-cite-backlink"><b><a href="#cite_ref-go_lang_video_2009_51-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFPike2009" class="citation web cs1">Pike, Rob (November 10, 2009). <a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=rKnDgT73v8s">"The Go Programming Language"</a>. YouTube<span class="reference-accessdate">. Retrieved <span class="nowrap">July 1,</span> 2011</span>.</cite></span>
</li>
<li id="cite_note-techtalk-compiling-52"><span class="mw-cite-backlink"><b><a href="#cite_ref-techtalk-compiling_52-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFPike2009" class="citation audio-visual cs1">Pike, Rob (November 10, 2009). <a rel="nofollow" class="external text" href="https://www.youtube.com/watch?v=rKnDgT73v8s#t=8m53"><i>The Go Programming Language</i></a> <span class="cs1-format">(flv)</span> (Tech talk). Google. Event occurs at 8:53.</cite></span>
</li>
<li id="cite_note-53"><span class="mw-cite-backlink"><b><a href="#cite_ref-53">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies">"Download and install packages and dependencies"</a>.</cite> See <a rel="nofollow" class="external text" href="http://godoc.org">godoc.org</a> for addresses and documentation of some packages.</span>
</li>
<li id="cite_note-54"><span class="mw-cite-backlink"><b><a href="#cite_ref-54">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://godoc.org">"GoDoc"</a>. <i>godoc.org</i>.</cite></span>
</li>
<li id="cite_note-55"><span class="mw-cite-backlink"><b><a href="#cite_ref-55">^</a></b></span> <span class="reference-text"><cite id="CITEREFPike" class="citation web cs1">Pike, Rob. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20131020101046/http://5by5.tv/changelog/100">"The Changelog"</a> (Podcast). Archived from <a rel="nofollow" class="external text" href="http://5by5.tv/changelog/100">the original</a> on October 20, 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">October 7,</span> 2013</span>.</cite></span>
</li>
<li id="cite_note-56"><span class="mw-cite-backlink"><b><a href="#cite_ref-56">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Semicolons">"Go Programming Language Specification, §Semicolons"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-58"><span class="mw-cite-backlink"><b><a href="#cite_ref-58">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/effective_go.html#semicolons">"Effective Go, §Semicolons"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-61"><span class="mw-cite-backlink"><b><a href="#cite_ref-61">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#For_statements">"The Go Programming Language Specification"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-62"><span class="mw-cite-backlink"><b><a href="#cite_ref-62">^</a></b></span> <span class="reference-text"><cite id="CITEREFPike2013" class="citation web cs1">Pike, Rob (October 23, 2013). <a rel="nofollow" class="external text" href="https://blog.golang.org/strings">"Strings, bytes, runes and characters in Go"</a>.</cite></span>
</li>
<li id="cite_note-63"><span class="mw-cite-backlink"><b><a href="#cite_ref-63">^</a></b></span> <span class="reference-text"><cite id="CITEREFDoxsey" class="citation web cs1">Doxsey, Caleb. <a rel="nofollow" class="external text" href="https://www.golang-book.com/books/intro/9">"Structs and Interfaces — An Introduction to Programming in Go"</a>. <i>www.golang-book.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">October 15,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-64"><span class="mw-cite-backlink"><b><a href="#cite_ref-64">^</a></b></span> <span class="reference-text"><cite id="CITEREFGerrand" class="citation web cs1">Gerrand, Andrew. <a rel="nofollow" class="external text" href="https://blog.golang.org/go-slices-usage-and-internals">"Go Slices: usage and internals"</a>.</cite></span>
</li>
<li id="cite_note-65"><span class="mw-cite-backlink"><b><a href="#cite_ref-65">^</a></b></span> <span class="reference-text"><cite id="CITEREFThe_Go_Authors" class="citation web cs1">The Go Authors. <a rel="nofollow" class="external text" href="https://golang.org/doc/effective_go.html#slices">"Effective Go: Slices"</a>.</cite></span>
</li>
<li id="cite_note-66"><span class="mw-cite-backlink"><b><a href="#cite_ref-66">^</a></b></span> <span class="reference-text"><cite id="CITEREFThe_Go_authors" class="citation web cs1">The Go authors. <a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Selectors">"Selectors"</a>.</cite></span>
</li>
<li id="cite_note-67"><span class="mw-cite-backlink"><b><a href="#cite_ref-67">^</a></b></span> <span class="reference-text"><cite id="CITEREFThe_Go_authors" class="citation web cs1">The Go authors. <a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Calls">"Calls"</a>.</cite></span>
</li>
<li id="cite_note-69"><span class="mw-cite-backlink"><b><a href="#cite_ref-69">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Package_unsafe">"Go Programming Language Specification, §Package unsafe"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-70"><span class="mw-cite-backlink"><b><a href="#cite_ref-70">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/ref/spec#Channel_types">"The Go Programming Language Specification"</a>. <i>go.dev</i><span class="reference-accessdate">. Retrieved <span class="nowrap">December 31,</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-71"><span class="mw-cite-backlink"><b><a href="#cite_ref-71">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Assignability">"The Go Programming Language Specification"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-72"><span class="mw-cite-backlink"><b><a href="#cite_ref-72">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/tour/basics/13">"A tour of go"</a>. <i>go.dev</i>.</cite></span>
</li>
<li id="cite_note-73"><span class="mw-cite-backlink"><b><a href="#cite_ref-73">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Constants">"The Go Programming Language Specification"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-74"><span class="mw-cite-backlink"><b><a href="#cite_ref-74">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/ref/spec#Function_types">"The Go Programming Language Specification"</a>. <i>go.dev</i><span class="reference-accessdate">. Retrieved <span class="nowrap">December 31,</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-75"><span class="mw-cite-backlink"><b><a href="#cite_ref-75">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Calls">"The Go Programming Language Specification"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-gohotdraw-76"><span class="mw-cite-backlink">^ <a href="#cite_ref-gohotdraw_76-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-gohotdraw_76-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFSchmagerCameronNoble2010" class="citation conference cs1">Schmager, Frank; Cameron, Nicholas; Noble, James (2010). <i>GoHotDraw: evaluating the Go programming language with design patterns</i>. Evaluation and Usability of Programming Languages and Tools. ACM.</cite></span>
</li>
<li id="cite_note-balbaert-77"><span class="mw-cite-backlink">^ <a href="#cite_ref-balbaert_77-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-balbaert_77-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-balbaert_77-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-balbaert_77-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-balbaert_77-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFBalbaert2012" class="citation book cs1">Balbaert, Ivo (2012). <i>The Way to Go: A Thorough Introduction to the Go Programming Language</i>. iUniverse.</cite></span>
</li>
<li id="cite_note-78"><span class="mw-cite-backlink"><b><a href="#cite_ref-78">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://talks.golang.org/2015/gophercon-goevolution.slide#19">"The Evolution of Go"</a>. <i>talks.golang.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">March 13,</span> 2016</span>.</cite></span>
</li>
<li id="cite_note-79"><span class="mw-cite-backlink"><b><a href="#cite_ref-79">^</a></b></span> <span class="reference-text"><cite id="CITEREFDiggins2009" class="citation web cs1">Diggins, Christopher (November 24, 2009). <a rel="nofollow" class="external text" href="http://www.drdobbs.com/architecture-and-design/duck-typing-and-the-go-programming-langu/228701527">"Duck Typing and the Go Programming Language"</a>. <i>Dr. Dobb's, The world of software development</i><span class="reference-accessdate">. Retrieved <span class="nowrap">March 10,</span> 2016</span>.</cite></span>
</li>
<li id="cite_note-80"><span class="mw-cite-backlink"><b><a href="#cite_ref-80">^</a></b></span> <span class="reference-text"><cite id="CITEREFRyer2015" class="citation web cs1">Ryer, Mat (December 1, 2015). <a rel="nofollow" class="external text" href="https://medium.com/@matryer/golang-advent-calendar-day-one-duck-typing-a513aaed544d#.ebm7j81xu">"Duck typing in Go"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">March 10,</span> 2016</span>.</cite></span>
</li>
<li id="cite_note-81"><span class="mw-cite-backlink"><b><a href="#cite_ref-81">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/faq">"Frequently Asked Questions (FAQ) - The Go Programming Language"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-82"><span class="mw-cite-backlink"><b><a href="#cite_ref-82">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Type_assertions">"The Go Programming Language Specification"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-83"><span class="mw-cite-backlink"><b><a href="#cite_ref-83">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Type_switches">"The Go Programming Language Specification"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-84"><span class="mw-cite-backlink"><b><a href="#cite_ref-84">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://pkg.go.dev/reflect">"reflect package"</a>. <i>pkg.go.dev</i>.</cite></span>
</li>
<li id="cite_note-85"><span class="mw-cite-backlink"><b><a href="#cite_ref-85">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://bitfieldconsulting.com/golang/map-string-interface">"map[string]interface{} in Go"</a>. <i>bitfieldconsulting.com</i>. June 6, 2020.</cite></span>
</li>
<li id="cite_note-86"><span class="mw-cite-backlink"><b><a href="#cite_ref-86">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://research.swtch.com/interfaces">"Go Data Structures: Interfaces"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">November 15,</span> 2012</span>.</cite></span>
</li>
<li id="cite_note-87"><span class="mw-cite-backlink"><b><a href="#cite_ref-87">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Interface_types">"The Go Programming Language Specification"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-88"><span class="mw-cite-backlink"><b><a href="#cite_ref-88">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/doc/go1.18#generics">"Go 1.18 Release Notes: Generics"</a>. <i>Go Programming Language</i>. March 15, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">March 16,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-89"><span class="mw-cite-backlink"><b><a href="#cite_ref-89">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.googlesource.com/proposal/+/HEAD/design/43651-type-parameters.md">"Type Parameters Proposal"</a>. <i>go.googlesource.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">June 25,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-90"><span class="mw-cite-backlink"><b><a href="#cite_ref-90">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/ref/spec">"The Go Programming Language Specification - The Go Programming Language"</a>. <i>go.dev</i><span class="reference-accessdate">. Retrieved <span class="nowrap">June 25,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-91"><span class="mw-cite-backlink"><b><a href="#cite_ref-91">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/blog/intro-generics">"An Introduction To Generics - The Go Programming Language"</a>. <i>go.dev</i><span class="reference-accessdate">. Retrieved <span class="nowrap">June 25,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-92"><span class="mw-cite-backlink"><b><a href="#cite_ref-92">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.googlesource.com/proposal/+/HEAD/design/43651-type-parameters.md#using-a-constraint">"Type Parameters Proposal"</a>. <i>go.googlesource.com</i><span class="reference-accessdate">. Retrieved <span class="nowrap">June 25,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-93"><span class="mw-cite-backlink"><b><a href="#cite_ref-93">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/effective_go.html#constants">"Effective Go"</a>. <i>golang.org</i>. The Go Authors<span class="reference-accessdate">. Retrieved <span class="nowrap">May 13,</span> 2014</span>.</cite></span>
</li>
<li id="cite_note-94"><span class="mw-cite-backlink"><b><a href="#cite_ref-94">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/wiki/Iota">"Go Wiki: Iota - The Go Programming Language"</a>. <i>go.dev</i><span class="reference-accessdate">. Retrieved <span class="nowrap">May 15,</span> 2025</span>. <q>Go's iota identifier is used in const declarations to simplify definitions of incrementing numbers. Because it can be used in expressions, it provides a generality beyond that of simple enumerations</q></cite></span>
</li>
<li id="cite_note-95"><span class="mw-cite-backlink"><b><a href="#cite_ref-95">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/go_tutorial.html">"A Tutorial for the Go Programming Language"</a>. <i>The Go Programming Language</i><span class="reference-accessdate">. Retrieved <span class="nowrap">March 10,</span> 2013</span>. <q>In Go the rule about visibility of information is simple: if a name (of a top-level type, function, method, constant or variable, or of a structure field or method) is capitalized, users of the package may see it. Otherwise, the name and hence the thing being named is visible only inside the package in which it is declared.</q></cite></span>
</li>
<li id="cite_note-96"><span class="mw-cite-backlink"><b><a href="#cite_ref-96">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies">"go"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-97"><span class="mw-cite-backlink"><b><a href="#cite_ref-97">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/code.html">"How to Write Go Code"</a>. <i>The Go Programming Language</i>. <q>The packages from the standard library are given short import paths such as "fmt" and "net/http". For your own packages, you must choose a base path that is unlikely to collide with future additions to the standard library or other external libraries. If you keep your code in a source repository somewhere, then you should use the root of that source repository as your base path. For instance, if you have an Example account at example.com/user, that should be your base path</q></cite></span>
</li>
<li id="cite_note-concurrency-is-not-98"><span class="mw-cite-backlink">^ <a href="#cite_ref-concurrency-is-not_98-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-concurrency-is-not_98-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFPike2012" class="citation web cs1">Pike, Rob (September 18, 2012). <a rel="nofollow" class="external text" href="https://vimeo.com/49718712">"Concurrency is not Parallelism"</a>.</cite></span>
</li>
<li id="cite_note-:0-99"><span class="mw-cite-backlink">^ <a href="#cite_ref-:0_99-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-:0_99-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFDonovanKernighan2016" class="citation book cs1">Donovan, Alan A. A.; Kernighan, Brian W. (2016). <i>The Go programming language</i>. Addison-Wesley professional computing series. New York, Munich: Addison-Wesley. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0-13-419044-0</bdi>.</cite></span>
</li>
<li id="cite_note-phrasebook-100"><span class="mw-cite-backlink">^ <a href="#cite_ref-phrasebook_100-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-phrasebook_100-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-phrasebook_100-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-phrasebook_100-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-phrasebook_100-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFChisnall2012" class="citation book cs1">Chisnall, David (2012). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=scyH562VXZUC"><i>The Go Programming Language Phrasebook</i></a>. Addison-Wesley. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>9780132919005</bdi>.</cite></span>
</li>
<li id="cite_note-101"><span class="mw-cite-backlink"><b><a href="#cite_ref-101">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/effective_go.html#sharing">"Effective Go"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-summerfield-102"><span class="mw-cite-backlink"><b><a href="#cite_ref-summerfield_102-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSummerfield2012" class="citation book cs1">Summerfield, Mark (2012). <i>Programming in Go: Creating Applications for the 21st Century</i>. Addison-Wesley.</cite></span>
</li>
<li id="cite_note-103"><span class="mw-cite-backlink"><b><a href="#cite_ref-103">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/mem">"The Go Memory Model"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">April 10,</span> 2017</span>.</cite></span>
</li>
<li id="cite_note-104"><span class="mw-cite-backlink"><b><a href="#cite_ref-104">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://talks.golang.org/2012/concurrency.slide">"Go Concurrency Patterns"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-105"><span class="mw-cite-backlink"><b><a href="#cite_ref-105">^</a></b></span> <span class="reference-text"><cite id="CITEREFGraham-Cumming2013" class="citation web cs1">Graham-Cumming, John (August 24, 2013). <a rel="nofollow" class="external text" href="https://blog.cloudflare.com/recycling-memory-buffers-in-go">"Recycling Memory Buffers in Go"</a>. <i>The Cloudflare Blog</i>.</cite></span>
</li>
<li id="cite_note-106"><span class="mw-cite-backlink"><b><a href="#cite_ref-106">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/play/tree.go">"tree.go"</a>.</cite></span>
</li>
<li id="cite_note-107"><span class="mw-cite-backlink"><b><a href="#cite_ref-107">^</a></b></span> <span class="reference-text"><cite id="CITEREFCheslack-Postava" class="citation web cs1">Cheslack-Postava, Ewen. <a rel="nofollow" class="external text" href="http://ewencp.org/blog/golang-iterators/">"Iterators in Go"</a>.</cite></span>
</li>
<li id="cite_note-108"><span class="mw-cite-backlink"><b><a href="#cite_ref-108">^</a></b></span> <span class="reference-text"><cite id="CITEREFKernighan" class="citation web cs1">Kernighan, Brian W. <a rel="nofollow" class="external text" href="http://www.vitanuova.com/inferno/papers/descent.html">"A Descent Into Limbo"</a>.</cite></span>
</li>
<li id="cite_note-memmodel-109"><span class="mw-cite-backlink">^ <a href="#cite_ref-memmodel_109-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-memmodel_109-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/go_mem.html">"The Go Memory Model"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">January 5,</span> 2011</span>.</cite></span>
</li>
<li id="cite_note-110"><span class="mw-cite-backlink"><b><a href="#cite_ref-110">^</a></b></span> <span class="reference-text"><cite id="CITEREFTang2010" class="citation conference cs1">Tang, Peiyi (2010). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20160909032631/http://www.ualr.edu/pxtang/papers/acc10.pdf"><i>Multi-core parallel programming in Go</i></a> <span class="cs1-format">(PDF)</span>. Proc. First International Conference on Advanced Computing and Communications. Archived from <a rel="nofollow" class="external text" href="http://www.ualr.edu/pxtang/papers/acc10.pdf">the original</a> <span class="cs1-format">(PDF)</span> on September 9, 2016<span class="reference-accessdate">. Retrieved <span class="nowrap">May 14,</span> 2015</span>.</cite></span>
</li>
<li id="cite_note-111"><span class="mw-cite-backlink"><b><a href="#cite_ref-111">^</a></b></span> <span class="reference-text"><cite id="CITEREFNanzWestSoares_Da_Silveira" class="citation conference cs1">Nanz, Sebastian; West, Scott; Soares Da Silveira, Kaue. <a rel="nofollow" class="external text" href="http://se.inf.ethz.ch/people/west/expert-gap-europar-2013.pdf"><i>Examining the expert gap in parallel programming</i></a> <span class="cs1-format">(PDF)</span>. Euro-Par 2013. <a href="CiteSeerX_(identifier)" class="mw-redirect" title="CiteSeerX (identifier)">CiteSeerX</a> <span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.368.6137">10.1.1.368.6137</a></span>.</cite></span>
</li>
<li id="cite_note-112"><span class="mw-cite-backlink"><b><a href="#cite_ref-112">^</a></b></span> <span class="reference-text"><cite id="CITEREFGo_Authors" class="citation web cs1">Go Authors. <a rel="nofollow" class="external text" href="https://go.dev/doc/codewalk/sharemem/">"Share Memory By Communicating"</a>.</cite></span>
</li>
<li id="cite_note-113"><span class="mw-cite-backlink"><b><a href="#cite_ref-113">^</a></b></span> <span class="reference-text"><cite id="CITEREFCox" class="citation web cs1"><a href="Russ_Cox" class="mw-redirect" title="Russ Cox">Cox, Russ</a>. <a rel="nofollow" class="external text" href="http://research.swtch.com/gorace">"Off to the Races"</a>.</cite></span>
</li>
<li id="cite_note-SPLASH2012-114"><span class="mw-cite-backlink"><b><a href="#cite_ref-SPLASH2012_114-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFPike2012" class="citation web cs1"><a href="Rob_Pike" title="Rob Pike">Pike, Rob</a> (October 25, 2012). <a rel="nofollow" class="external text" href="https://talks.golang.org/2012/splash.article">"Go at Google: Language Design in the Service of Software Engineering"</a>. Google, Inc.</cite> "There is one important caveat: Go is not purely memory safe in the presence of concurrency."</span>
</li>
<li id="cite_note-115"><span class="mw-cite-backlink"><b><a href="#cite_ref-115">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/blog/race-detector">"Introducing the Go Race Detector"</a>. <i>The Go Blog</i><span class="reference-accessdate">. Retrieved <span class="nowrap">June 26,</span> 2013</span>.</cite></span>
</li>
<li id="cite_note-116"><span class="mw-cite-backlink"><b><a href="#cite_ref-116">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://go.dev/doc/go1.6">"Go 1.6 Release Notes - The Go Programming Language"</a>. <i>go.dev</i><span class="reference-accessdate">. Retrieved <span class="nowrap">November 17,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-117"><span class="mw-cite-backlink"><b><a href="#cite_ref-117">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/faq">"Frequently Asked Questions (FAQ) - the Go Programming Language"</a>.</cite></span>
</li>
<li id="cite_note-118"><span class="mw-cite-backlink"><b><a href="#cite_ref-118">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://medium.com/@jondot/a-story-of-a-fat-go-binary-20edc6549b97">"A Story of a Fat Go Binary"</a>. September 21, 2018.</cite></span>
</li>
<li id="cite_note-121"><span class="mw-cite-backlink"><b><a href="#cite_ref-121">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Interface_types">"Go Programming Language Specification, §Interface types"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-122"><span class="mw-cite-backlink"><b><a href="#cite_ref-122">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/ref/spec#Type_assertion">"Go Programming Language Specification, §Type assertions"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-124"><span class="mw-cite-backlink"><b><a href="#cite_ref-124">^</a></b></span> <span class="reference-text"><cite class="citation interview cs1"><a rel="nofollow" class="external text" href="http://www.informit.com/articles/article.aspx?p=1623555">"All Systems Are Go"</a>. <i>informIT</i> (Interview). August 17, 2010<span class="reference-accessdate">. Retrieved <span class="nowrap">June 21,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-126"><span class="mw-cite-backlink"><b><a href="#cite_ref-126">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20091113154906/http://golang.org/doc/go_lang_faq.html#absent_features">"Language Design FAQ"</a>. November 13, 2009. Archived from <a rel="nofollow" class="external text" href="https://golang.org/doc/go_lang_faq.html#absent_features">the original</a> on November 13, 2009.</cite></span>
</li>
<li id="cite_note-127"><span class="mw-cite-backlink"><b><a href="#cite_ref-127">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://groups.google.com/group/golang-nuts/browse_thread/thread/1ce5cd050bb973e4">"Proposal for an exception-like mechanism"</a>. <i>golang-nuts</i>. March 25, 2010<span class="reference-accessdate">. Retrieved <span class="nowrap">March 25,</span> 2010</span>.</cite></span>
</li>
<li id="cite_note-128"><span class="mw-cite-backlink"><b><a href="#cite_ref-128">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/devel/weekly.html#2010-03-30">"Weekly Snapshot History"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-129"><span class="mw-cite-backlink"><b><a href="#cite_ref-129">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://code.google.com/p/go-wiki/wiki/PanicAndRecover">"Panic And Recover"</a>. Go wiki.</cite></span>
</li>
<li id="cite_note-130"><span class="mw-cite-backlink"><b><a href="#cite_ref-130">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/effective_go.html#panic">"Effective Go"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-131"><span class="mw-cite-backlink"><b><a href="#cite_ref-131">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/cmd/gofmt/">"gofmt"</a>. <i>The Go Programming Language</i><span class="reference-accessdate">. Retrieved <span class="nowrap">February 5,</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-132"><span class="mw-cite-backlink"><b><a href="#cite_ref-132">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/golang/lint">"golang/lint public archive"</a>. <i>github.com</i>. November 30, 2022.</cite></span>
</li>
<li id="cite_note-eff-133"><span class="mw-cite-backlink">^ <a href="#cite_ref-eff_133-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-eff_133-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/effective_go.html">"Effective Go"</a>. <i>The Go Programming Language</i>.</cite></span>
</li>
<li id="cite_note-134"><span class="mw-cite-backlink"><b><a href="#cite_ref-134">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yourbasic.org/golang/unused-local-variables/">"Unused local variables"</a>. <i>yourbasic.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">February 11,</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-135"><span class="mw-cite-backlink"><b><a href="#cite_ref-135">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://yourbasic.org/golang/unused-imports/">"Unused package imports"</a>. <i>yourbasic.org</i><span class="reference-accessdate">. Retrieved <span class="nowrap">February 11,</span> 2021</span>.</cite></span>
</li>
<li id="cite_note-136"><span class="mw-cite-backlink"><b><a href="#cite_ref-136">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/golang/go/wiki/CodeReviewComments">"Code Review Comments"</a>. <i><a href="GitHub" title="GitHub">GitHub</a></i><span class="reference-accessdate">. Retrieved <span class="nowrap">July 3,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-137"><span class="mw-cite-backlink"><b><a href="#cite_ref-137">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://talks.golang.org/">"Talks"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">July 3,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-138"><span class="mw-cite-backlink"><b><a href="#cite_ref-138">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://blog.golang.org/errors-are-values">"Errors Are Values"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">July 3,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-139"><span class="mw-cite-backlink"><b><a href="#cite_ref-139">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/golang/tools/blob/master/gopls/README.md">"tools/gopls/README.md at master · golang/tools"</a>. <i>GitHub</i><span class="reference-accessdate">. Retrieved <span class="nowrap">November 17,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-140"><span class="mw-cite-backlink"><b><a href="#cite_ref-140">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/pkg/fmt/">"fmt"</a>. <i>The Go Programming Language</i><span class="reference-accessdate">. Retrieved <span class="nowrap">April 8,</span> 2019</span>.</cite></span>
</li>
<li id="cite_note-141"><span class="mw-cite-backlink"><b><a href="#cite_ref-141">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/pkg/testing/">"testing"</a>. <i>The Go Programming Language</i><span class="reference-accessdate">. Retrieved <span class="nowrap">December 27,</span> 2020</span>.</cite></span>
</li>
<li id="cite_note-142"><span class="mw-cite-backlink"><b><a href="#cite_ref-142">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://pkg.go.dev/net/http">"http package - net/http - Go Packages"</a>. <i>pkg.go.dev</i><span class="reference-accessdate">. Retrieved <span class="nowrap">November 23,</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-code-mag-2022-11-24-143"><span class="mw-cite-backlink"><b><a href="#cite_ref-code-mag-2022-11-24_143-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFLee2022" class="citation magazine cs1">Lee, Wei-Meng (November 24, 2022). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230605071554/https://www.codemag.com/Article/2011051/Introduction-to-the-Go-Programming-Language">"Introduction to the Go Programming Language"</a>. <i><a href="Component_Developer_Magazine" title="Component Developer Magazine">Component Developer Magazine</a></i>. Archived from <a rel="nofollow" class="external text" href="https://www.codemag.com/Article/2011051/Introduction-to-the-Go-Programming-Language">the original</a> on June 5, 2023<span class="reference-accessdate">. Retrieved <span class="nowrap">September 8,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-linuxmag-213-2018-144"><span class="mw-cite-backlink"><b><a href="#cite_ref-linuxmag-213-2018_144-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFHoffmannNeumeyer2018" class="citation magazine cs1">Hoffmann, Frank; Neumeyer, Mandy (August 2018). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230528175545/https://www.linux-magazine.com/Issues/2018/213/Caddy">"Simply Secure"</a>. <i><a href="Linux_Magazine" title="Linux Magazine">Linux Magazine</a></i>. No. 213. Archived from <a rel="nofollow" class="external text" href="https://www.linux-magazine.com/Issues/2018/213/Caddy">the original</a> on May 28, 2023<span class="reference-accessdate">. Retrieved <span class="nowrap">September 8,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-codemag-20220831-145"><span class="mw-cite-backlink"><b><a href="#cite_ref-codemag-20220831_145-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFLee2022" class="citation magazine cs1">Lee, Wei-Meng (August 31, 2022). <a rel="nofollow" class="external text" href="https://www.codemag.com/Article/2103061/Introduction-to-Containerization-Using-Docker">"Introduction to Containerization Using Docker"</a>. <i><a href="Component_Developer_Magazine" title="Component Developer Magazine">CODE Magazine</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230530073551/https://www.codemag.com/Article/2103061/Introduction-to-Containerization-Using-Docker">Archived</a> from the original on May 30, 2023<span class="reference-accessdate">. Retrieved <span class="nowrap">September 8,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-codemag-20230224-146"><span class="mw-cite-backlink"><b><a href="#cite_ref-codemag-20230224_146-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFPirker2023" class="citation magazine cs1">Pirker, Alexander (February 24, 2023). <a rel="nofollow" class="external text" href="https://www.codemag.com/Article/2303071/Kubernetes-Security-for-Starters">"Kubernetes Security for Starters"</a>. <i><a href="Component_Developer_Magazine" title="Component Developer Magazine">CODE Magazine</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230401212416/https://codemag.com/Article/2303071/Kubernetes-Security-for-Starters">Archived</a> from the original on April 1, 2023<span class="reference-accessdate">. Retrieved <span class="nowrap">September 8,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-sigmod20-cockroach-147"><span class="mw-cite-backlink"><b><a href="#cite_ref-sigmod20-cockroach_147-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFTaftSharifMateiVan_Benschoten2020" class="citation conference cs1">Taft, Rebecca; Sharif, Irfan; Matei, Andrei; Van Benschoten, Nathan; Lewis, Jordan; Grieger, Tobias; Niemi, Kai; Woods, Andy; Birzin, Anne; Poss, Raphael; Bardea, Paul; Ranade, Amruta; Darnell, Ben; Gruneir, Bram; Jaffray, Justin; Zhang, Lucy; Mattis, Peter (June 11, 2020). "CockroachDB: The Resilient Geo-Distributed SQL Database". <i>Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data</i>. <a href="SIGMOD" title="SIGMOD">SIGMOD</a> '20. pp. <span class="nowrap">1493–</span>1509. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F3318464.3386134">10.1145/3318464.3386134</a></span>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-1-4503-6735-6</bdi>.</cite></span>
</li>
<li id="cite_note-linuxjournal-20220913-148"><span class="mw-cite-backlink"><b><a href="#cite_ref-linuxjournal-20220913_148-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFHopkins2022" class="citation news cs1">Hopkins, Brandon (September 13, 2022). <a rel="nofollow" class="external text" href="https://www.linuxjournal.com/content/static-site-generation-hugo">"Static Site Generation with Hugo"</a>. <i>Linux Journal</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230408065506/https://www.linuxjournal.com/content/static-site-generation-hugo">Archived</a> from the original on April 8, 2023<span class="reference-accessdate">. Retrieved <span class="nowrap">September 8,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-149"><span class="mw-cite-backlink"><b><a href="#cite_ref-149">^</a></b></span> <span class="reference-text"><cite id="CITEREFSimionato2009" class="citation news cs1">Simionato, Michele (November 15, 2009). <a rel="nofollow" class="external text" href="http://www.artima.com/weblogs/viewpost.jsp?thread=274019">"Interfaces vs Inheritance (or, watch out for Go!)"</a>. artima<span class="reference-accessdate">. Retrieved <span class="nowrap">November 15,</span> 2009</span>.</cite></span>
</li>
<li id="cite_note-150"><span class="mw-cite-backlink"><b><a href="#cite_ref-150">^</a></b></span> <span class="reference-text"><cite id="CITEREFAstels2009" class="citation news cs1">Astels, Dave (November 9, 2009). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20181019164102/https://www.engineyard.com/blog/ready-set-go">"Ready, Set, Go!"</a>. engineyard. Archived from <a rel="nofollow" class="external text" href="https://www.engineyard.com/blog/ready-set-go">the original</a> on October 19, 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">November 9,</span> 2009</span>.</cite></span>
</li>
<li id="cite_note-151"><span class="mw-cite-backlink"><b><a href="#cite_ref-151">^</a></b></span> <span class="reference-text"><cite id="CITEREFjt2010" class="citation web cs1">jt (January 11, 2010). <a rel="nofollow" class="external text" href="http://jaxenter.com/google-s-go-wins-programming-language-of-the-year-award-10069.html">"Google's Go Wins Programming Language Of The Year Award"</a>. jaxenter<span class="reference-accessdate">. Retrieved <span class="nowrap">December 5,</span> 2012</span>.</cite></span>
</li>
<li id="cite_note-152"><span class="mw-cite-backlink"><b><a href="#cite_ref-152">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html">"TIOBE Programming Community Index for June 2015"</a>. TIOBE Software. June 2015<span class="reference-accessdate">. Retrieved <span class="nowrap">July 5,</span> 2015</span>.</cite></span>
</li>
<li id="cite_note-153"><span class="mw-cite-backlink"><b><a href="#cite_ref-153">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.tiobe.com/tiobe-index/">"TIOBE Index"</a>. <i>TIOBE</i><span class="reference-accessdate">. Retrieved <span class="nowrap">July 15,</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-154"><span class="mw-cite-backlink"><b><a href="#cite_ref-154">^</a></b></span> <span class="reference-text"><cite id="CITEREFEckel2011" class="citation web cs1">Eckel, Bruce (August 27, 2011). <a rel="nofollow" class="external text" href="http://www.artima.com/weblogs/viewpost.jsp?thread=333589">"Calling Go from Python via JSON-RPC"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">August 29,</span> 2011</span>.</cite></span>
</li>
<li id="cite_note-155"><span class="mw-cite-backlink"><b><a href="#cite_ref-155">^</a></b></span> <span class="reference-text"><cite id="CITEREFHundt2011" class="citation conference cs1">Hundt, Robert (2011). <a rel="nofollow" class="external text" href="https://days2011.scala-lang.org/sites/days2011/files/ws3-1-Hundt.pdf"><i>Loop recognition in C++/Java/Go/Scala</i></a> <span class="cs1-format">(PDF)</span>. Scala Days.</cite></span>
</li>
<li id="cite_note-156"><span class="mw-cite-backlink"><b><a href="#cite_ref-156">^</a></b></span> <span class="reference-text"><cite id="CITEREFMetz2011" class="citation web cs1">Metz, Cade (July 1, 2011). <a rel="nofollow" class="external text" href="https://www.theregister.co.uk/2011/07/01/go_v_cpluplus_redux/">"Google Go strikes back with C++ bake-off"</a>. <i><a href="The_Register" title="The Register">The Register</a></i>.</cite></span>
</li>
<li id="cite_note-yager-157"><span class="mw-cite-backlink"><b><a href="#cite_ref-yager_157-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFYager" class="citation web cs1">Yager, Will. <a rel="nofollow" class="external text" href="http://yager.io/programming/go.html">"Why Go is not Good"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">November 4,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-dobronszki-158"><span class="mw-cite-backlink"><b><a href="#cite_ref-dobronszki_158-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFDobronszki" class="citation web cs1">Dobronszki, Janos. <a rel="nofollow" class="external text" href="https://crufter.com/everyday-hassles-in-go">"Everyday Hassles in Go"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">November 4,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-159"><span class="mw-cite-backlink"><b><a href="#cite_ref-159">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://golang.org/doc/faq#semicolons">"Why are there braces but no semicolons? And why can't I put the opening brace on the next line?"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">March 26,</span> 2020</span>. <q>The advantages of a single, programmatically mandated format for all Go programs greatly outweigh any perceived disadvantages of the particular style.</q></cite></span>
</li>
<li id="cite_note-160"><span class="mw-cite-backlink"><b><a href="#cite_ref-160">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://fasterthanli.me/articles/i-want-off-mr-golangs-wild-ride">"I want off Mr. Golang's Wild Ride"</a>. February 28, 2020<span class="reference-accessdate">. Retrieved <span class="nowrap">November 17,</span> 2020</span>.</cite></span>
</li>
<li id="cite_note-161"><span class="mw-cite-backlink"><b><a href="#cite_ref-161">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/golang/go/issues/32088">"proposal: os: Create/Open/OpenFile() set FILE_SHARE_DELETE on windows #32088"</a>. <i><a href="GitHub" title="GitHub">GitHub</a></i>. May 16, 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">November 17,</span> 2020</span>.</cite></span>
</li>
<li id="cite_note-162"><span class="mw-cite-backlink"><b><a href="#cite_ref-162">^</a></b></span> <span class="reference-text"><cite id="CITEREFTu2019" class="citation web cs1">Tu, Tengfei (2019). <a rel="nofollow" class="external text" href="https://songlh.github.io/paper/go-study.pdf">"Understanding Real-World Concurrency Bugs in Go"</a> <span class="cs1-format">(PDF)</span>. <q>For example, around 58% of blocking bugs are caused by message passing. In addition to the violation of Go's channel usage rules (e.g., waiting on a channel that no one sends data to or close), many concurrency bugs are caused by the mixed usage of message passing and other new semantics and new libraries in Go, which can easily be overlooked but hard to detect</q></cite></span>
</li>
<li id="cite_note-163"><span class="mw-cite-backlink"><b><a href="#cite_ref-163">^</a></b></span> <span class="reference-text"><cite id="CITEREFBrownlee2009" class="citation news cs1">Brownlee, John (November 13, 2009). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20151208143907/http://www.geek.com/news/google-didnt-google-go-before-naming-their-programming-language-977351/">"Google didn't google "Go" before naming their programming language'"</a>. Archived from <a rel="nofollow" class="external text" href="http://www.geek.com/news/google-didnt-google-go-before-naming-their-programming-language-977351/">the original</a> on December 8, 2015<span class="reference-accessdate">. Retrieved <span class="nowrap">May 26,</span> 2016</span>.</cite></span>
</li>
<li id="cite_note-infoweek-164"><span class="mw-cite-backlink"><b><a href="#cite_ref-infoweek_164-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFClaburn2009" class="citation news cs1">Claburn, Thomas (November 11, 2009). <a rel="nofollow" class="external text" href="https://web.archive.org/web/20100722010320/http://www.informationweek.com/news/software/web_services/showArticle.jhtml?articleID=221601351">"Google 'Go' Name Brings Accusations Of Evil'"</a>. InformationWeek. Archived from <a rel="nofollow" class="external text" href="http://www.informationweek.com/news/software/web_services/showArticle.jhtml?articleID=221601351">the original</a> on July 22, 2010<span class="reference-accessdate">. Retrieved <span class="nowrap">January 18,</span> 2010</span>.</cite></span>
</li>
<li id="cite_note-issue9-165"><span class="mw-cite-backlink">^ <a href="#cite_ref-issue9_165-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-issue9_165-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://github.com/golang/go/issues/9#issuecomment-66047478">"Issue 9 - go — I have already used the name for *MY* programming language"</a>. <i>Github</i>. <a href="Google_Inc." class="mw-redirect" title="Google Inc.">Google Inc.</a><span class="reference-accessdate"> Retrieved <span class="nowrap">October 12,</span> 2010</span>.</cite></span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="Further_reading">Further reading</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239549316">
/* start https://en.wikipedia.org/ */
.mw-parser-output .refbegin{margin-bottom:0.5em}.mw-parser-output .refbegin-hanging-indents>ul{margin-left:0}.mw-parser-output .refbegin-hanging-indents>ul>li{margin-left:0;padding-left:3.2em;text-indent:-3.2em}.mw-parser-output .refbegin-hanging-indents ul,.mw-parser-output .refbegin-hanging-indents ul li{list-style:none}@media(max-width:720px){.mw-parser-output .refbegin-hanging-indents>ul>li{padding-left:1.6em;text-indent:-1.6em}}.mw-parser-output .refbegin-columns{margin-top:0.3em}.mw-parser-output .refbegin-columns ul{margin-top:0}.mw-parser-output .refbegin-columns li{page-break-inside:avoid;break-inside:avoid-column}@media screen{.mw-parser-output .refbegin{font-size:90%}}
/* end https://en.wikipedia.org/ */
</style><div class="refbegin" style="">
<ul><li><cite id="CITEREFDonovanKernighan2015" class="citation book cs1">Donovan, Alan; Kernighan, Brian (October 2015). <a rel="nofollow" class="external text" href="https://www.informit.com/store/go-programming-language-9780134190440"><i>The Go Programming Language</i></a> (1st ed.). <a href="Addison-Wesley_Professional" class="mw-redirect" title="Addison-Wesley Professional">Addison-Wesley Professional</a>. p. 400. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0-13-419044-0</bdi>.</cite></li>
<li><cite id="CITEREFBodner2021" class="citation book cs1">Bodner, Jon (March 2021). <a rel="nofollow" class="external text" href="https://www.oreilly.com/library/view/learning-go/9781492077206/"><i>Learning Go</i></a> (1st ed.). <a href="O'Reilly_Media" title="O'Reilly Media">O'Reilly</a>. p. 352. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>9781492077213</bdi>.</cite></li></ul>
</div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1290876196">
/* start https://en.wikipedia.org/ */
.mw-parser-output .side-box{margin:4px 0;box-sizing:border-box;border:1px solid #aaa;font-size:88%;line-height:1.25em;background-color:var(--background-color-interactive-subtle,#f8f9fa);display:flow-root}.mw-parser-output .infobox .side-box{font-size:100%}.mw-parser-output .side-box-abovebelow,.mw-parser-output .side-box-text{padding:0.25em 0.9em}.mw-parser-output .side-box-image{padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .side-box-imageright{padding:2px 0.9em 2px 0;text-align:center}@media(min-width:500px){.mw-parser-output .side-box-flex{display:flex;align-items:center}.mw-parser-output .side-box-text{flex:1;min-width:0}}@media(min-width:720px){.mw-parser-output .side-box{width:238px}.mw-parser-output .side-box-right{clear:right;float:right;margin-left:1em}.mw-parser-output .side-box-left{margin-right:1em}}
/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1237033735">
/* start https://en.wikipedia.org/ */
@media print{body.ns-0 .mw-parser-output .sistersitebox{display:none!important}}@media screen{html.skin-theme-clientpref-night .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-en-v2.svg"]{background-color:white}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .sistersitebox img[src*="Wiktionary-logo-en-v2.svg"]{background-color:white}}
/* end https://en.wikipedia.org/ */
</style><div class="side-box side-box-right sistersitebox"><style data-mw-deduplicate="TemplateStyles:r1126788409">
/* start https://en.wikipedia.org/ */
.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}
/* end https://en.wikipedia.org/ */
</style>
<div class="side-box-flex">
<div class="side-box-image"><span class="noviewer" typeof="mw:File"></span></div>
<div class="side-box-text plainlist">Wikimedia Commons has media related to <span style="font-weight: bold; font-style: italic;"><a href="https://commons.wikimedia.org/wiki/Category:Go_(programming_language)" class="extiw external" title="commons:Category:Go (programming language)">Go (programming language)</a></span>.</div></div>
</div>
<ul><li><span class="official-website"><span class="url"><a rel="nofollow" class="external text" href="https://go.dev">Official website</a></span></span> </li></ul>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}
/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1236075235">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}
/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox" aria-labelledby="Programming_languages625" style="padding:3px"><table class="nowraplinks hlist mw-collapsible expanded navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div id="Programming_languages625" style="font-size:114%;margin:0 4em"><a href="Programming_language" title="Programming language">Programming languages</a></div></th></tr><tr><td class="navbox-abovebelow" colspan="2"><div>
<ul><li><a href="Comparison_of_programming_languages" title="Comparison of programming languages">Comparison</a></li>
<li><a href="Timeline_of_programming_languages" title="Timeline of programming languages">Timeline</a></li>
<li><a href="History_of_programming_languages" title="History of programming languages">History</a></li></ul>
</div></td></tr><tr><td colspan="2" class="navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Ada_(programming_language)" title="Ada (programming language)">Ada</a></li>
<li><a href="ALGOL" title="ALGOL">ALGOL</a>
<ul><li><a href="Simula" title="Simula">Simula</a></li></ul></li>
<li><a href="APL_(programming_language)" title="APL (programming language)">APL</a></li>
<li><a href="Assembly_language" title="Assembly language">Assembly</a></li>
<li><a href="BASIC" title="BASIC">BASIC</a>
<ul><li><a href="Visual_Basic" title="Visual Basic">Visual Basic</a>
<ul><li><a href="Visual_Basic_(classic)" title="Visual Basic (classic)">classic</a></li>
<li><a href="Visual_Basic_(.NET)" title="Visual Basic (.NET)">.NET</a></li></ul></li></ul></li>
<li><a href="C_(programming_language)" title="C (programming language)">C</a></li>
<li><a href="C%2B%2B" title="C++">C++</a></li>
<li><a href="C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a></li>
<li><a href="COBOL" title="COBOL">COBOL</a></li>
<li><a href="Erlang_(programming_language)" title="Erlang (programming language)">Erlang</a>
<ul><li><a href="Elixir_(programming_language)" title="Elixir (programming language)">Elixir</a></li></ul></li>
<li><a href="Forth_(programming_language)" title="Forth (programming language)">Forth</a></li>
<li><a href="Fortran" title="Fortran">Fortran</a></li>
<li><a href="Haskell" title="Haskell">Haskell</a></li>
<li><a href="Java_(programming_language)" title="Java (programming language)">Java</a></li>
<li><a href="JavaScript" title="JavaScript">JavaScript</a></li>
<li><a href="Julia_(programming_language)" title="Julia (programming language)">Julia</a></li>
<li><a href="Kotlin_(programming_language)" title="Kotlin (programming language)">Kotlin</a></li>
<li><a href="Lisp_(programming_language)" title="Lisp (programming language)">Lisp</a></li>
<li><a href="Lua" title="Lua">Lua</a></li>
<li><a href="MATLAB" title="MATLAB">MATLAB</a></li>
<li><a href="ML_(programming_language)" title="ML (programming language)">ML</a>
<ul><li><a href="Caml" title="Caml">Caml </a>
<ul><li><a href="OCaml" title="OCaml">OCaml</a></li></ul></li></ul></li>
<li><a href="Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a>
<ul><li><a href="Object_Pascal" title="Object Pascal">Object Pascal</a></li></ul></li>
<li><a href="Perl" title="Perl">Perl </a>
<ul><li><a href="Raku_(programming_language)" title="Raku (programming language)">Raku</a></li></ul></li>
<li><a href="PHP" title="PHP">PHP</a></li>
<li><a href="Prolog" title="Prolog">Prolog</a></li>
<li><a href="Python_(programming_language)" title="Python (programming language)">Python</a></li>
<li><a href="R_(programming_language)" title="R (programming language)">R</a></li>
<li><a href="Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a></li>
<li><a href="Rust_(programming_language)" title="Rust (programming language)">Rust</a></li>
<li><a href="SAS_language" title="SAS language">SAS</a></li>
<li><a href="SQL" title="SQL">SQL</a></li>
<li><a href="Scratch_(programming_language)" title="Scratch (programming language)">Scratch</a></li>
<li><a href="Shell_script" title="Shell script">Shell</a></li>
<li><a href="Smalltalk" title="Smalltalk">Smalltalk</a></li>
<li><a href="Swift_(programming_language)" title="Swift (programming language)">Swift</a></li>
<li><i><a href="List_of_programming_languages" title="List of programming languages">more...</a></i></li></ul>
</div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div>
<ul><li><span class="noviewer" typeof="mw:File"><span title="List-Class article"></span></span> <b>Lists:</b> <a href="List_of_programming_languages" title="List of programming languages">Alphabetical</a></li>
<li><a href="List_of_programming_languages_by_type" title="List of programming languages by type">Categorical</a></li>
<li><a href="Generational_list_of_programming_languages" title="Generational list of programming languages">Generational</a></li>
<li><a href="Non-English-based_programming_languages" title="Non-English-based programming languages">Non-English-based</a></li>
<li><span class="noviewer" typeof="mw:File"><span title="Category"></span></span> Category</li></ul>
</div></td></tr></tbody></table></div>
<div class="navbox-styles"></div><div role="navigation" class="navbox" aria-labelledby="Google_free_and_open-source_software55" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Google_free_and_open-source_software55" style="font-size:114%;margin:0 4em"><a href="Google" title="Google">Google</a> free and open-source software</div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">Software</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%">Applications</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Chromium_(web_browser)" title="Chromium (web browser)">Chromium</a></li>
<li><a href="Gemini_(language_model)" title="Gemini (language model)">Gemma</a></li>
<li><a href="OpenRefine" title="OpenRefine">OpenRefine</a></li>
<li><a href="Tesseract_(software)" title="Tesseract (software)">Tesseract</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Programming languages</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Carbon_(programming_language)" title="Carbon (programming language)">Carbon</a></li>
<li><a href="Dart_(programming_language)" title="Dart (programming language)">Dart</a></li>
<li><a href="Sawzall_(programming_language)" title="Sawzall (programming language)">Sawzall</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Frameworks and<br>development tools</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Accelerated_Mobile_Pages" title="Accelerated Mobile Pages">AMP</a></li>
<li><a href="Angular_(web_framework)" title="Angular (web framework)">Angular</a></li>
<li><a href="AngularJS" title="AngularJS">AngularJS</a></li>
<li><a href="Apache_Beam" title="Apache Beam">Beam</a></li>
<li><a href="Bazel_(software)" title="Bazel (software)">Bazel</a></li>
<li><a href="Blockly" title="Blockly">Blockly</a></li>
<li><a href="Brotli" title="Brotli">Brotli</a></li>
<li><a href="Google_Closure_Tools" title="Google Closure Tools">Closure Tools</a></li>
<li><a href="Cpplint" title="Cpplint">Cpplint</a></li>
<li><a href="FlatBuffers" title="FlatBuffers">FlatBuffers</a></li>
<li><a href="Flutter_(software)" title="Flutter (software)">Flutter</a></li>
<li><a href="Ganeti" title="Ganeti">Ganeti</a></li>
<li><a href="Gears_(software)" title="Gears (software)">Gears</a></li>
<li><a href="Gerrit_(software)" title="Gerrit (software)">Gerrit</a></li>
<li><a href="GLOP" title="GLOP">GLOP</a></li>
<li><a href="GRPC" title="GRPC">gRPC</a></li>
<li><a href="Gson" title="Gson">Gson</a></li>
<li><a href="Google_Guava" title="Google Guava">Guava</a></li>
<li><a href="Guetzli" title="Guetzli">Guetzli</a></li>
<li><a href="Google_Guice" title="Google Guice">Guice</a></li>
<li><a href="GVisor" title="GVisor">gVisor</a></li>
<li><a href="Kubernetes" title="Kubernetes">Kubernetes</a></li>
<li><a href="LevelDB" title="LevelDB">LevelDB</a></li>
<li><a href="Libvpx" title="Libvpx">libvpx</a></li>
<li><a href="Lighthouse_(software)" title="Lighthouse (software)">Lighthouse</a></li>
<li><a href="Google_Native_Client" title="Google Native Client">NaCl</a></li>
<li><a href="Namebench" title="Namebench">Namebench</a></li>
<li><a href="Nomulus" title="Nomulus">Nomulus</a></li>
<li><a href="OR-Tools" title="OR-Tools">OR-Tools</a></li>
<li><a href="Polymer_(library)" title="Polymer (library)">Polymer</a></li>
<li><a href="Protocol_Buffers" title="Protocol Buffers">Protocol Buffers</a></li>
<li><a href="TensorFlow" title="TensorFlow">TensorFlow</a></li>
<li><a href="V8_(JavaScript_engine)" title="V8 (JavaScript engine)">V8</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Operating systems</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Android_(operating_system)" title="Android (operating system)">Android</a></li>
<li><a href="ChromiumOS" title="ChromiumOS">ChromiumOS</a></li>
<li><a href="Fuchsia_(operating_system)" title="Fuchsia (operating system)">Fuchsia</a></li>
<li><a href="GLinux" title="GLinux">gLinux</a></li>
<li><a href="Goobuntu" title="Goobuntu">Goobuntu</a></li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Related</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Google_Code-in" title="Google Code-in">Code-in</a></li>
<li><i><a href="Google_LLC_v._Oracle_America%2C_Inc." title="Google LLC v. Oracle America, Inc.">Google LLC v. Oracle America, Inc.</a></i></li>
<li><a href="Open_Source_Security_Foundation" title="Open Source Security Foundation">Open Source Security Foundation</a></li>
<li><a href="Google_Summer_of_Code" title="Google Summer of Code">Summer of Code</a></li></ul>
</div></td></tr></tbody></table></div>
<div class="navbox-styles"></div><div role="navigation" class="navbox" aria-labelledby="Rob_Pike75" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Rob_Pike75" style="font-size:114%;margin:0 4em"><a href="Rob_Pike" title="Rob Pike">Rob Pike</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">Operating systems</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Plan_9_from_Bell_Labs" title="Plan 9 from Bell Labs">Plan 9 from Bell Labs</a></li>
<li><a href="Inferno_(operating_system)" title="Inferno (operating system)">Inferno</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Programming languages</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Newsqueak" title="Newsqueak">Newsqueak</a></li>
<li><a href="Limbo_(programming_language)" title="Limbo (programming language)">Limbo</a></li>
<li><a href="Sawzall_(programming_language)" title="Sawzall (programming language)">Sawzall</a></li>
</ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Software</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Acme_(text_editor)" title="Acme (text editor)">acme</a></li>
<li><a href="Blit_(computer_terminal)" title="Blit (computer terminal)">Blit</a></li>
<li><a href="Sam_(text_editor)" title="Sam (text editor)">sam</a></li>
<li><a href="Rio_(windowing_system)" title="Rio (windowing system)">rio</a></li>
<li><a href="8%C2%BD_(Plan_9)" class="mw-redirect" title="8½ (Plan 9)">8½</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Publications</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><i><a href="The_Practice_of_Programming" title="The Practice of Programming">The Practice of Programming</a></i></li>
<li><i><a href="The_Unix_Programming_Environment" title="The Unix Programming Environment">The Unix Programming Environment</a></i></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Ren%C3%A9e_French" title="Renée French">Renée French</a></li>
<li><a href="Mark_V._Shaney" title="Mark V. Shaney">Mark V. Shaney</a></li>
<li><a href="UTF-8" title="UTF-8">UTF-8</a></li></ul>
</div></td></tr></tbody></table></div>
<div class="navbox-styles"></div><div role="navigation" class="navbox" aria-labelledby="Ken_Thompson90" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Ken_Thompson90" style="font-size:114%;margin:0 4em"><a href="Ken_Thompson" title="Ken Thompson">Ken Thompson</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">Operating systems</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Unix" title="Unix">Unix</a></li>
<li><a href="Plan_9_from_Bell_Labs" title="Plan 9 from Bell Labs">Plan 9 from Bell Labs</a></li>
<li><a href="Inferno_(operating_system)" title="Inferno (operating system)">Inferno</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Programming languages</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="B_(programming_language)" title="B (programming language)">B</a></li>
</ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Software</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Belle_(chess_machine)" title="Belle (chess machine)">Belle</a></li>
<li><a href="Ed_(text_editor)" class="mw-redirect" title="Ed (text editor)">ed</a></li>
<li><a href="Grep" title="Grep">grep</a></li>
<li><a href="Sam_(text_editor)" title="Sam (text editor)">sam</a></li>
<li><i><a href="Space_Travel_(video_game)" title="Space Travel (video game)">Space Travel</a></i></li>
<li><a href="Thompson_shell" title="Thompson shell">Thompson shell</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Associated institutions</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Bell_Labs" title="Bell Labs">Bell Labs</a></li>
<li><a href="Google" title="Google">Google</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="UTF-8" title="UTF-8">UTF-8</a></li></ul>
</div></td></tr></tbody></table></div>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1038841319">
/* start https://en.wikipedia.org/ */
.mw-parser-output .tooltip-dotted{border-bottom:1px dotted;cursor:help}
/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox authority-control" aria-labelledby="Authority_control_databases_frameless&#124;text-top&#124;10px&#124;alt=Edit_this_at_Wikidata&#124;link=https&#58;//www.wikidata.org/wiki/Q37227#identifiers&#124;class=noprint&#124;Edit_this_at_Wikidata968" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Authority_control_databases_frameless&#124;text-top&#124;10px&#124;alt=Edit_this_at_Wikidata&#124;link=https&#58;//www.wikidata.org/wiki/Q37227#identifiers&#124;class=noprint&#124;Edit_this_at_Wikidata968" style="font-size:114%;margin:0 4em">Authority control databases </div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">International</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://id.worldcat.org/fast/1893916">FAST</a></span></li></ul></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">National</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://d-nb.info/gnd/7725033-3">Germany</a></span></li><li><span class="uid"><span class="rt-commentedText tooltip tooltip-dotted" title="Go (Computer program language)"><a rel="nofollow" class="external text" href="https://id.loc.gov/authorities/sh2012000746">United States</a></span></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://www.nli.org.il/en/authorities/987007581576905171">Israel</a></span></li></ul></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://lux.collections.yale.edu/view/concept/db1c8d6e-07da-4d7c-9a17-93c6c01b07bf">Yale LUX</a></span></li></ul></div></td></tr></tbody></table></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-07-25" href="https://en.wikipedia.org/wiki/?title=Go_(programming_language)&oldid=1302415749">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
</body></html>